Package | away3d.materials.passes |
Class | public class DistanceMapPass |
Inheritance | DistanceMapPass MaterialPassBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alphaMask : Texture2DBase | DistanceMapPass | ||
alphaPremultiplied : Boolean | MaterialPassBase | ||
alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | DistanceMapPass | ||
animationSet : IAnimationSet
The animation used to add vertex code to the shader code. | MaterialPassBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialPassBase | ||
depthCompareMode : String | MaterialPassBase | ||
material : MaterialBase
The material to which this pass belongs. | MaterialPassBase | ||
mipmap : Boolean
Defines whether any used textures should use mipmapping. | MaterialPassBase | ||
numUsedStreams : uint [read-only]
The amount of used vertex streams in the vertex code. | 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 |
Method | Defined By | ||
---|---|---|---|
DistanceMapPass | |||
dispose():void
Cleans up any resources used by the current object. | MaterialPassBase |
alphaMask | property |
alphaMask:Texture2DBase
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
DistanceMapPass | () | Constructor |
public function DistanceMapPass()
activate | () | method |
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D, textureRatioX:Number, textureRatioY:Number):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
textureRatioX:Number | |
textureRatioY:Number |
getFragmentCode | () | method |
override arcane function getFragmentCode():String
Returns
String |
getVertexCode | () | method |
override arcane function getVertexCode(code:String):String
Parameters
code:String |
String |
render | () | method |
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, lightPicker:LightPickerBase):void
Parameters
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
lightPicker:LightPickerBase |