Package | away3d.materials.shaders |
Class | public class SpecularDot3Shader |
Inheritance | SpecularDot3Shader 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.
| SpecularDot3Shader | ||
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.
| SpecularDot3Shader | ||
id : int
Unique identifier
| Material | ||
shininess : Number
The exponential dropoff value used for specular highlights.
| SpecularDot3Shader | ||
smooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | ||
specular : uint
Coefficient for specular light level.
| SpecularDot3Shader | ||
tangentSpace : Boolean
Determines if the DOT3 mapping is rendered in tangent space (true) or object space (false).
| SpecularDot3Shader | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number [read-only]
Returns the width of the bitmapData being used as the shader DOT3 map.
| SpecularDot3Shader | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
SpecularDot3Shader
(bitmap:BitmapData, init:Object = null)
Creates a new
SpecularDot3Shader object. | SpecularDot3Shader | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
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.
| SpecularDot3Shader | ||
| SpecularDot3Shader | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | ||
| SpecularDot3Shader |
Method | Defined by | ||
---|---|---|---|
calcMapping(priIndex:uint, map:Matrix):Matrix
| SpecularDot3Shader | ||
getDefaultThickness():Number
| WireframeMaterial | ||
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | ||
renderShader(priIndex:uint):void
Renders the shader to the specified face.
| SpecularDot3Shader |
bitmap | property |
bitmap:BitmapData
[read-write]Returns the bitmapData object being used as the shader DOT3 map.
Implementation 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.
Implementation public function get height():Number
shininess | property |
shininess:Number
[read-write]The exponential dropoff value used for specular highlights.
Implementation public function get shininess():Number
public function set shininess(value:Number):void
specular | property |
specular:uint
[read-write]Coefficient for specular light level.
Implementation public function get specular():uint
public function set specular(value:uint):void
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.
Implementation public function get width():Number
SpecularDot3Shader | () | constructor |
public function SpecularDot3Shader(bitmap:BitmapData, init:Object = null)
Parameters
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.
|
shininess:Number (default = 20) | |
specular:Color (default = 0xFFFFFF) | |
tangentSpace:Boolean (default = false) |
calcMapping | () | method |
protected override function calcMapping(priIndex:uint, map:Matrix):Matrix
Parameters
priIndex:uint |
|
map:Matrix |
Matrix |
getPixel32 | () | method |
public function getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
Parametersu: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 |
protected override function renderShader(priIndex:uint):void
Renders the shader to the specified face.
ParameterspriIndex: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 )
|