Package | away3d.materials.shaders |
Class | public class DiffuseDot3Shader |
Inheritance | DiffuseDot3Shader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
alpha : Number
Determines the alpha value of the material
| WireColorMaterial | ||
bitmap : BitmapData
Returns the bitmapData object being used as the shader DOT3 map. | DiffuseDot3Shader | ||
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 | ||
height : Number [read-only]
Returns the height of the bitmapData being used as the shader DOT3 map. | DiffuseDot3Shader | ||
id : int [read-only]
Unique identifier
| Material | ||
smooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | ||
tangentSpace : Boolean
Determines if the DOT3 mapping is rendered in tangent space (true) or object space (false). | DiffuseDot3Shader | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
visible : Boolean [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number [read-only]
Returns the width of the bitmapData being used as the shader DOT3 map. | DiffuseDot3Shader | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined By | ||
---|---|---|---|
DiffuseDot3Shader(bitmap:BitmapData, init:Object = null)
Creates a new DiffuseDot3Shader object. | DiffuseDot3Shader | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
[override]
Duplicates the material properties to another material object. | ColorMaterial | ||
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate. | DiffuseDot3Shader | ||
DiffuseDot3Shader | |||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | ||
DiffuseDot3Shader |
Method | Defined By | ||
---|---|---|---|
calcMapping(priIndex:uint, map:Matrix):Matrix | AbstractShader | ||
calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number> [override] | DiffuseDot3Shader | ||
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 [override]
Renders the shader to the specified face. | DiffuseDot3Shader |
bitmap | property |
bitmap:BitmapData
Returns the bitmapData object being used as the shader DOT3 map.
public function get bitmap():BitmapData
public function set bitmap(value:BitmapData):void
height | property |
height:Number
[read-only] Returns the height of the bitmapData being used as the shader DOT3 map.
public function get height():Number
tangentSpace | property |
public var tangentSpace:Boolean
Determines if the DOT3 mapping is rendered in tangent space (true) or object space (false).
width | property |
width:Number
[read-only] Returns the width of the bitmapData being used as the shader DOT3 map.
public function get width():Number
DiffuseDot3Shader | () | Constructor |
public function DiffuseDot3Shader(bitmap:BitmapData, init:Object = null)
Creates a new DiffuseDot3Shader
object.
bitmap:BitmapData — The bitmapData object to be used as the material's DOT3 map.
| |
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
calcUVT | () | method |
override protected function calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>
Parameters
priIndex:uint | |
uvt:Vector.<Number> |
Vector.<Number> |
getPixel32 | () | method |
public function getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
Parameters
u:Number — The u (horizontal) texture coordinate.
| |
v:Number — The v (verical) texture coordinate.
|
uint — The argb pixel value.
|
invalidateFaces | () | method |
public function invalidateFaces(source:Object3D = null, view:View3D = null):void
Parameters
source:Object3D (default = null )
| |
view:View3D (default = null )
|
renderShader | () | method |
override protected function renderShader(priIndex:uint):void
Renders the shader to the specified face.
Parameters
priIndex:uint — The index of the primitive being rendered.
|
updateFaces | () | method |
public function updateFaces(source:Object3D = null, view:View3D = null):void
Parameters
source:Object3D (default = null )
| |
view:View3D (default = null )
|