Package | away3d.materials.shaders |
Class | public class AbstractShader |
Inheritance | AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Subclasses | AmbientShader, DepthShader, DiffuseDot3Shader, DiffusePhongShader, EnviroShader, SpecularDot3Shader, SpecularPhongShader |
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
24 bit color value representing the material color
| WireColorMaterial | ||
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 | ||
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 |
Property | Defined by | ||
---|---|---|---|
_alpha : Number | WireColorMaterial | ||
_color : uint | WireColorMaterial | ||
_debug : Boolean | ColorMaterial | ||
_endIndex : uint | AbstractShader | ||
_generated : Boolean | AbstractShader | ||
ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| WireframeMaterial | ||
_screenIndices : Vector | AbstractShader | ||
_screenUVTs : Vector | AbstractShader | ||
_screenVertices : Vector | AbstractShader | ||
_startIndex : uint | AbstractShader | ||
_thickness : Number | WireframeMaterial | ||
_uvs : Vector | AbstractShader | ||
_wireAlpha : Number | WireframeMaterial | ||
_wireColor : uint = 0x0 | WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
AbstractShader
(init:Object = null)
Creates a new
AbstractShader object. | AbstractShader | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
Duplicates the material properties to another material object.
| ColorMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Method | Defined by | ||
---|---|---|---|
calcMapping(priIndex:uint, map:Matrix):Matrix
| AbstractShader | ||
calcUVT(priIndex:uint, uvt:Vector):Vector
| AbstractShader | ||
getDefaultThickness():Number
| WireframeMaterial | ||
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | ||
getUVData(priIndex:uint):Vector
| AbstractShader | ||
renderShader(priIndex:uint):void
Renders the shader to the specified face.
| AbstractShader |
blendMode | property |
public var blendMode:String
Defines a blendMode value for the shader bitmap.
_endIndex | property |
protected var _endIndex:uint
_generated | property |
protected var _generated:Boolean
_screenIndices | property |
protected var _screenIndices:Vector
_screenUVTs | property |
protected var _screenUVTs:Vector
_screenVertices | property |
protected var _screenVertices:Vector
smooth | property |
public var smooth:Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
_startIndex | property |
protected var _startIndex:uint
_uvs | property |
protected var _uvs:Vector
AbstractShader | () | constructor |
public function AbstractShader(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
smooth:Boolean (default = false) | |
blendMode:String (default = BlendMode.NORMAL) |
calcMapping | () | method |
protected function calcMapping(priIndex:uint, map:Matrix):Matrix
Parameters
priIndex:uint |
|
map:Matrix |
Matrix |
calcUVT | () | method |
protected function calcUVT(priIndex:uint, uvt:Vector):Vector
Parameters
priIndex:uint |
|
uvt:Vector |
Vector |
getMapping | () | method |
protected function getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
ParameterspriIndex:uint — The data object holding all information about the triangle to be drawn.
|
Matrix — The required matrix object.
|
getUVData | () | method |
protected function getUVData(priIndex:uint):Vector
Parameters
priIndex:uint |
Vector |
renderShader | () | method |
protected function renderShader(priIndex:uint):void
Renders the shader to the specified face.
ParameterspriIndex:uint — The index of the primitive being rendered.
|