View source
class SingleObjectDepthPass
package away3d.materials.passes
extends MaterialPassBase
Available on all platforms
The SingleObjectDepthPass provides a material pass that renders a single object to a depth map from the point of view from a light.
Constructor
new(textureSize:Int = 512, polyOffset:Float = 15)
Creates a new SingleObjectDepthPass object.
Parameters:
textureSize | The size of the depth map texture to render to. |
|---|---|
polyOffset | The amount by which the rendered object will be inflated, to prevent depth map rounding errors. todo: provide custom vertex code to assembler |