Package | away3d.materials.shaders |
Class | public class DiffuseDot3Shader |
Inheritance | DiffuseDot3Shader ![]() ![]() |
Implements | IUVMaterial |
See also
Property | Defined by | ||
---|---|---|---|
bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the shader DOT3 map.
| DiffuseDot3Shader | ||
![]() | blendMode : String
Defines a blendMode value for the shader bitmap.
| AbstractShader | |
![]() | debug : Boolean
Determines if faces with the shader applied are drawn with outlines
| AbstractShader | |
height : Number [read-only]
Returns the height of the bitmapData being used as the shader DOT3 map.
| DiffuseDot3Shader | ||
![]() | id : int
Unique identifier
| AbstractShader | |
![]() | 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 | ||
![]() | visible : Boolean
Indicates whether the material is visible
| AbstractShader | |
width : Number [read-only]
Returns the width of the bitmapData being used as the shader DOT3 map.
| DiffuseDot3Shader |
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
| AbstractShader | |
Clears facematerial value objects when bitmap requires updating
| DiffuseDot3Shader | ||
![]() |
| AbstractShader | |
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| DiffuseDot3Shader | ||
Invalidates facematerial value objects when texturemapping requires updating
| DiffuseDot3Shader | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| AbstractShader | |
![]() |
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
| AbstractShader | |
Renders a material layer for the specified triangle.
| DiffuseDot3Shader | ||
Called once per render loop when material is visible.
| DiffuseDot3Shader |
Method | Defined by | ||
---|---|---|---|
Renders the shader to the specified face.
| DiffuseDot3Shader |
bitmap | property |
bitmap:BitmapData
[read-only]Returns the bitmapData object being used as the shader DOT3 map.
Implementation public function get bitmap():BitmapData
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
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
DiffuseDot3Shader | () | constructor |
public function DiffuseDot3Shader(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.
|
tangentSpace:Boolean (default = false) |
clearFaces | () | method |
public function clearFaces(source:Object3D = null, view:View3D = null):void
Clears facematerial value objects when bitmap requires updating
Parameterssource:Object3D (default = null ) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null ) — [optional] The view rendering the draw triangle.
|
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
Invalidates facematerial value objects when texturemapping requires updating
Parameterssource:Object3D (default = null ) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null ) — [optional] The view rendering the draw triangle.
|
renderLayer | () | method |
public override function renderLayer(tri:DrawTriangle, layer:Sprite, level:int):int
Renders a material layer for the specified triangle.
Parameterstri:DrawTriangle — The drawtriangle used for render information.
|
|
layer:Sprite — The parent layer into which the triangle is drawn.
|
|
level:int — Defines the sprite level for the layer.
|
int |
renderShader | () | method |
protected override function renderShader(tri:DrawTriangle):void
Renders the shader to the specified face.
Parameterstri:DrawTriangle — The face object being rendered.
|
updateMaterial | () | method |
public override function updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
Parameterssource:Object3D |
|
view:View3D |