Package | away3d.materials.shaders |
Class | public class DepthShader |
Inheritance | DepthShader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
Determines the alpha value of the material
| WireColorMaterial | ||
blendMode : String
Defines a blendMode value for the shader bitmap.
| AbstractShader | ||
color : uint
Coefficient for the color shading at maxZ.
| DepthShader | ||
debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| ColorMaterial | ||
id : int
Unique identifier
| Material | ||
maxZ : Number
Coefficient for the maximum Z of the depth map.
| DepthShader | ||
minZ : Number
Coefficient for the minimum Z of the depth map.
| DepthShader | ||
smooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
DepthShader
(init:Object = null)
Creates a new
DepthShader object. | DepthShader | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
Duplicates the material properties to another material object.
| ColorMaterial | ||
| DepthShader | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Method | Defined by | ||
---|---|---|---|
DepthShader | |||
DepthShader | |||
getDefaultThickness():Number
| WireframeMaterial | ||
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | ||
AbstractShader | |||
Renders the shader to the specified face.
| DepthShader | ||
| DepthShader | ||
updateFilter():void
| DepthShader |
color | property |
color:uint
[read-write]Coefficient for the color shading at maxZ.
Implementation public function get color():uint
public function set color(value:uint):void
maxZ | property |
maxZ:Number
[read-write]Coefficient for the maximum Z of the depth map.
Implementation public function get maxZ():Number
public function set maxZ(value:Number):void
minZ | property |
minZ:Number
[read-write]Coefficient for the minimum Z of the depth map.
Implementation public function get minZ():Number
public function set minZ(value:Number):void
DepthShader | () | constructor |
public function DepthShader(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
minZ:Number (default = 500) | |
maxZ:Number (default = 2000) | |
color:Number (default = 0x000000) |
calcMapping | () | method |
protected override function calcMapping(tri:DrawTriangle, map:Matrix):Matrix
Parameters
tri:DrawTriangle |
|
map:Matrix |
Matrix |
calcUVT | () | method |
protected override function calcUVT(tri:DrawTriangle, uvt:Vector):Vector
Parameters
tri:DrawTriangle |
|
uvt:Vector |
Vector |
invalidateFaces | () | method |
public function invalidateFaces(source:Object3D = null, view:View3D = null):void
Parameters
source:Object3D (default = null )
|
|
view:View3D (default = null )
|
renderShader | () | method |
protected override function renderShader(tri:DrawTriangle):void
Renders the shader to the specified face.
Parameterstri:DrawTriangle — The face object being rendered.
|
updateFaces | () | method |
protected function updateFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D |
|
view:View3D |
updateFilter | () | method |
protected function updateFilter():void