The SingleObjectDepthPass provides a material pass that renders a single object to a depth map from the point
of view from a light.
public function SingleObjectDepthPass(textureSize:uint = 512, polyOffset:Number = 15)
Creates a new SingleObjectDepthPass object.
Parameters | textureSize:uint (default = 512 ) — The size of the depth map texture to render to.
|
|
| polyOffset:Number (default = 15 ) — The amount by which the rendered object will be inflated, to prevent depth map rounding errors.
todo: provide custom vertex code to assembler
|
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
override public function dispose():void
Cleans up any resources used by the current object.
arcane function getDepthMap(renderable:IRenderable, stage3DProxy:Stage3DProxy):Texture
Gets the depth maps rendered for this object from all lights.
Parameters
| renderable:IRenderable — The renderable for which to retrieve the depth maps.
|
|
| stage3DProxy:Stage3DProxy — The Stage3DProxy object currently used for rendering.
|
Returns | Texture — A list of depth map textures for all supported lights.
|
override arcane function getFragmentCode(animationCode:String):String
Returns the fragment AGAL code for the material.
Parameters
Returns arcane function getProjection(renderable:IRenderable):Matrix3D
Retrieves the depth map projection maps for all lights.
Parameters
| renderable:IRenderable — The renderable for which to retrieve the projection maps.
|
Returns | Matrix3D — A list of projection maps for all supported lights.
|
override arcane function getVertexCode():String
Returns the vertex AGAL code for the material.
Returnsoverride arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, viewProjection:Matrix3D):void
Parameters
Thu Jul 11 2013, 08:55 PM +01:00