Package | away3d.materials.passes |
Class | public class DepthMapPass |
Inheritance | DepthMapPass MaterialPassBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alphaMask : Texture2DBase
A texture providing alpha data to be able to prevent semi-transparent pixels to write to the alpha mask. | DepthMapPass | ||
alphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have
already been premultiplied. | MaterialPassBase | ||
alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | DepthMapPass | ||
animationRegisterCache : AnimationRegisterCache | MaterialPassBase | ||
animationSet : IAnimationSet
Returns the animation data set adding animations to the material. | MaterialPassBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialPassBase | ||
depthCompareMode : String
The depth compare mode used to render the renderables using this material. | MaterialPassBase | ||
material : MaterialBase
The material to which this pass belongs. | MaterialPassBase | ||
mipmap : Boolean
Defines whether any used textures should use mipmapping. | MaterialPassBase | ||
needFragmentAnimation : Boolean [read-only] | MaterialPassBase | ||
needUVAnimation : Boolean [read-only]
Indicates whether the pass requires any UV animatin code. | MaterialPassBase | ||
numUsedFragmentConstants : uint [read-only]
The amount of used fragment constants in the fragment code. | MaterialPassBase | ||
numUsedStreams : uint [read-only]
The amount of used vertex streams in the vertex code. | MaterialPassBase | ||
numUsedVaryings : uint [read-only] | MaterialPassBase | ||
numUsedVertexConstants : uint [read-only]
The amount of used vertex constants in the vertex code. | MaterialPassBase | ||
renderToTexture : Boolean [read-only]
Specifies whether this pass renders to texture
| MaterialPassBase | ||
repeat : Boolean
Defines whether textures should be tiled. | MaterialPassBase | ||
smooth : Boolean
Defines whether smoothing should be applied to any used textures. | MaterialPassBase | ||
writeDepth : Boolean
Indicate whether this pass should write to the depth buffer or not. | MaterialPassBase |
Method | Defined By | ||
---|---|---|---|
Creates a new DepthMapPass object. | DepthMapPass | ||
dispose():void
Cleans up any resources used by the current object. | MaterialPassBase | ||
setBlendMode(value:String):void
The blend mode to use when drawing this renderable. | MaterialPassBase |
alphaMask | property |
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.
public function get alphaMask():Texture2DBase
public function set alphaMask(value:Texture2DBase):void
alphaThreshold | property |
alphaThreshold:Number
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).
public function get alphaThreshold():Number
public function set alphaThreshold(value:Number):void
DepthMapPass | () | Constructor |
public function DepthMapPass()
Creates a new DepthMapPass object.
activate | () | method |
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
getFragmentCode | () | method |
override arcane function getFragmentCode(code:String):String
Returns the fragment AGAL code for the material.
Parameters
code:String |
String |
getVertexCode | () | method |
override arcane function getVertexCode():String
Returns the vertex AGAL code for the material.
ReturnsString |
render | () | method |
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, viewProjection:Matrix3D):void
Parameters
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
viewProjection:Matrix3D |