View source
class DepthMapPass
package away3d.materials.passes
extends MaterialPassBase
Available on all platforms
DepthMapPass is a pass that writes depth values to a depth map as a 32-bit value exploded over the 4 texture channels. This is used to render shadow maps, depth maps, etc.
Constructor
Variables
alphaMask:Texture2DBase
A texture providing alpha data to be able to prevent semi-transparent pixels to write to the alpha mask. Usually the diffuse texture when alphaThreshold is used.
alphaThreshold:Float
The minimum alpha value for which pixels should be drawn. This is used for transparency that is either invisible or entirely opaque, often used with textures for foliage, etc. Recommended values are 0 to disable alpha, or 0.5 to create smooth edges. Default value is 0 (disabled).