View source
class OcclusionMaterial
package away3d.materials
extends ColorMaterial › SinglePassMaterialBase › MaterialBase › NamedAssetBase
Available on all platforms
OcclusionMaterial is a ColorMaterial for an object to prevents drawing anything that is placed behind it.
Constructor
new(occlude:Bool = true, color:Int = 0xcccccc, alpha:Float = 1)
Creates a new OcclusionMaterial object.
Parameters:
occlude | Whether or not to occlude other objects. |
|---|---|
color | The material's diffuse surface color. |
alpha | The material's surface alpha. |