| 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 [read-only]
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 [override] [read-only]
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.<int> | AbstractShader | ||
| _screenUVTs : Vector.<Number> | AbstractShader | ||
| _screenVertices : Vector.<Number> | AbstractShader | ||
| _startIndex : uint | AbstractShader | ||
![]() | _thickness : Number | WireframeMaterial | |
| _uvs : Vector.<UV> | 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 | |
![]() | [override]
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.<Number>):Vector.<Number> | 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.<Number> | AbstractShader | ||
renderShader(priIndex:uint):void
Renders the shader to the specified face. | AbstractShader | ||
| _endIndex | property |
protected var _endIndex:uint| _generated | property |
protected var _generated:Boolean| _screenIndices | property |
protected var _screenIndices:Vector.<int>| _screenUVTs | property |
protected var _screenUVTs:Vector.<Number>| _screenVertices | property |
protected var _screenVertices:Vector.<Number>| _startIndex | property |
protected var _startIndex:uint| _uvs | property |
protected var _uvs:Vector.<UV>| blendMode | property |
public var blendMode:StringDefines a blendMode value for the shader bitmap.
| smooth | property |
public var smooth:BooleanDetermines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | () | Constructor |
public function AbstractShader(init:Object = null)
Creates a new AbstractShader object.
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
| calcMapping | () | method |
protected function calcMapping(priIndex:uint, map:Matrix):MatrixParameters
priIndex:uint | |
map:Matrix |
Matrix |
| calcUVT | () | method |
protected function calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>Parameters
priIndex:uint | |
uvt:Vector.<Number> |
Vector.<Number> |
| getMapping | () | method |
protected function getMapping(priIndex:uint):MatrixCalculates the mapping matrix required to draw the triangle texture to screen.
Parameters
priIndex: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.<Number>Parameters
priIndex:uint |
Vector.<Number> |
| renderShader | () | method |
protected function renderShader(priIndex:uint):voidRenders the shader to the specified face.
Parameters
priIndex:uint — The index of the primitive being rendered.
|