Package | away3d.materials.methods |
Class | public class CascadeShadowMapMethod |
Inheritance | CascadeShadowMapMethod ShadowMapMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
alpha : Number
The "transparency" of the shadows. | ShadowMapMethodBase | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | ShadowMapMethodBase | ||
baseMethod : SimpleShadowMapMethodBase
The shadow map sampling method used to sample individual cascades. | CascadeShadowMapMethod | ||
castingLight : LightBase [read-only]
The light casting the shadows. | ShadowMapMethodBase | ||
epsilon : Number
A small value to counter floating point precision errors when comparing values in the shadow map with the
calculated depth value. | ShadowMapMethodBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
CascadeShadowMapMethod(shadowMethodBase:SimpleShadowMapMethodBase)
Creates a new CascadeShadowMapMethod object. | CascadeShadowMapMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
baseMethod | property |
baseMethod:SimpleShadowMapMethodBase
The shadow map sampling method used to sample individual cascades. These are typically those used in conjunction with a DirectionalShadowMapper.
public function get baseMethod():SimpleShadowMapMethodBase
public function set baseMethod(value:SimpleShadowMapMethodBase):void
See also
sharedRegisters | property |
sharedRegisters:ShaderRegisterData
[override] The shared registers created by the compiler and possibly used by methods.
arcane function get sharedRegisters():ShaderRegisterData
arcane function set sharedRegisters(value:ShaderRegisterData):void
CascadeShadowMapMethod | () | Constructor |
public function CascadeShadowMapMethod(shadowMethodBase:SimpleShadowMapMethodBase)
Creates a new CascadeShadowMapMethod object.
ParametersshadowMethodBase:SimpleShadowMapMethodBase — The shadow map sampling method used to sample individual cascades (fe: HardShadowMapMethod, SoftShadowMapMethod)
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
cleanCompilationData | () | method |
override arcane function cleanCompilationData():void
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
getVertexCode | () | method |
override arcane function getVertexCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache |
String |
initConstants | () | method |
override arcane function initConstants(vo:MethodVO):void
Initializes unchanging shader constants using the data from a MethodVO.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
setRenderState | () | method |
override arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):void
Sets the render state for a single renderable.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
| |
renderable:IRenderable — The renderable currently being rendered.
| |
stage3DProxy:Stage3DProxy — The Stage3DProxy object currently used for rendering.
| |
camera:Camera3D — The camera from which the scene is currently rendered.
|