Package | away3d.materials.passes |
Class | public class ShadowCasterPass |
Inheritance | ShadowCasterPass CompiledPass MaterialPassBase flash.events.EventDispatcher |
See also
Method | Defined By | ||
---|---|---|---|
ShadowCasterPass(material:MaterialBase)
Creates a new ShadowCasterPass objects. | ShadowCasterPass | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompiledPass | ||
setBlendMode(value:String):void
The blend mode to use when drawing this renderable. | MaterialPassBase |
Method | Defined By | ||
---|---|---|---|
addPasses(passes:Vector.<MaterialPassBase>):void
Adds internal passes to the material. | CompiledPass | ||
addPassesFromMethods():void
Adds any possible passes needed by the used methods. | CompiledPass | ||
cleanUp():void
Cleans up the after compiling. | CompiledPass | ||
createCompiler(profile:String):ShaderCompiler [override]
Factory method to create a concrete compiler object for this pass. | ShadowCasterPass | ||
initCommonsData():void
Initializes commonly required constant values. | CompiledPass | ||
initCompiler(profile:String):void
Initializes the compiler for this pass. | CompiledPass | ||
initUVTransformData():void
Initializes the default UV transformation matrix. | CompiledPass | ||
updateLightConstants():void [override]
Updates constant data render state used by the lights. | ShadowCasterPass | ||
updateLights():void [override]
Implemented by subclasses if the pass uses lights to update the shader. | ShadowCasterPass | ||
updateMethodConstants():void
Updates method constants if they have changed. | CompiledPass | ||
updateProbes(stage3DProxy:Stage3DProxy):void [override]
Updates constant data render state used by the light probes. | ShadowCasterPass | ||
updateRegisterIndices():void [override]
Updates the indices for various registers. | ShadowCasterPass | ||
updateShaderProperties():void [override]
Copies the shader's properties from the compiler. | ShadowCasterPass | ||
usesLights():Boolean [override]
Indicates whether the shader uses any lights. | ShadowCasterPass | ||
usesProbes():Boolean [override]
Indicates whether the shader uses any light probes. | ShadowCasterPass |
ShadowCasterPass | () | Constructor |
public function ShadowCasterPass(material:MaterialBase)
Creates a new ShadowCasterPass objects.
Parametersmaterial:MaterialBase — The material to which this pass belongs.
|
activate | () | method |
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
createCompiler | () | method |
override protected function createCompiler(profile:String):ShaderCompiler
Factory method to create a concrete compiler object for this pass.
Parameters
profile:String — The compatibility profile used by the renderer.
|
ShaderCompiler |
render | () | method |
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, viewProjection:Matrix3D):void
Parameters
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
viewProjection:Matrix3D |
updateLightConstants | () | method |
override protected function updateLightConstants():void
Updates constant data render state used by the lights. This method is optional for subclasses to implement.
updateLights | () | method |
override protected function updateLights():void
Implemented by subclasses if the pass uses lights to update the shader.
updateProbes | () | method |
override protected function updateProbes(stage3DProxy:Stage3DProxy):void
Updates constant data render state used by the light probes. This method is optional for subclasses to implement.
Parameters
stage3DProxy:Stage3DProxy |
updateRegisterIndices | () | method |
override protected function updateRegisterIndices():void
Updates the indices for various registers.
updateShaderProperties | () | method |
override protected function updateShaderProperties():void
Copies the shader's properties from the compiler.
usesLights | () | method |
override protected function usesLights():Boolean
Indicates whether the shader uses any lights.
ReturnsBoolean |
usesProbes | () | method |
override protected function usesProbes():Boolean
Indicates whether the shader uses any light probes.
ReturnsBoolean |