The SingleObjectDepthPass provides a material pass that renders a single object to a depth map from the point
of view from a light.
numDirectionalLights:uint
[override]
Implementation arcane function get numDirectionalLights():uint
arcane function set numDirectionalLights(value:uint):void
numPointLights:uint
[override]
Implementation arcane function get numPointLights():uint
arcane function set numPointLights(value:uint):void
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, textureRatioX:Number, textureRatioY:Number):void
Parameters
override public function dispose():void
Cleans up any resources used by the current object.
arcane function getDepthMaps(renderable:IRenderable, stage3DProxy:Stage3DProxy):Vector.<Texture>
Gets the depth maps rendered for this object from all lights.
Parameters
Returns | Vector.<Texture> — A list of depth map textures for all supported lights.
|
override arcane function getFragmentCode():String
Returns arcane function getProjections(renderable:IRenderable):Vector.<Matrix3D>
Retrieves the depth map projection maps for all lights.
Parameters
| renderable:IRenderable — The renderable for which to retrieve the projection maps.
|
Returns | Vector.<Matrix3D> — A list of projection maps for all supported lights.
|
override arcane function getVertexCode(code:String):String
Parameters
Returnsoverride arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, lightPicker:LightPickerBase):void
Parameters
Tue Jul 17 2012, 10:37 AM +01:00