Package | away3d.materials |
Class | public class Dot3BitmapMaterialF10 |
Inheritance | Dot3BitmapMaterialF10 ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | |
![]() | bitmap : BitmapData
Returns the bitmapData object being used as the material texture.
| BitmapMaterial | |
![]() | blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | |
![]() | color : uint
Defines a colored tint for the texture bitmap.
| BitmapMaterial | |
![]() | colorTransform : ColorTransform
Defines a colortransform for the texture bitmap.
| BitmapMaterial | |
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| BitmapMaterial | |
![]() | height : Number
Returns the height of the bitmapData being used as the material texture.
| BitmapMaterial | |
![]() | id : int
Unique identifier
| BitmapMaterial | |
normalMap : BitmapData [read-only]
Returns the bitmapData object being used as the material normal map.
| Dot3BitmapMaterialF10 | ||
![]() | precision : Number
Corrects distortion caused by the affine transformation (non-perspective) of textures.
| BitmapMaterial | |
![]() | repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
shininess : Number
The exponential dropoff value used for specular highlights.
| Dot3BitmapMaterialF10 | ||
![]() | showNormals : Boolean
Displays the normals per face in pink lines.
| BitmapMaterial | |
![]() | smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | |
specular : Number
Coefficient for specular light level.
| Dot3BitmapMaterialF10 | ||
![]() | visible : Boolean
Indicates whether the material is visible
| BitmapMaterial | |
![]() | width : Number
Returns the width of the bitmapData being used as the material texture.
| BitmapMaterial |
Method | Defined by | ||
---|---|---|---|
Dot3BitmapMaterialF10
(bitmap:BitmapData, normalMap:BitmapData, init:Object = null)
Creates a new
Dot3BitmapMaterial object. | Dot3BitmapMaterialF10 | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| BitmapMaterial | |
![]() |
Clears facematerial value objects when bitmap requires updating
| BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() |
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| BitmapMaterial | |
![]() |
Invalidates facematerial value objects when texturemapping requires updating
| BitmapMaterial | |
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawBillboard primitive to the render session. | BitmapMaterial | |
![]() |
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
| BitmapMaterial | |
![]() |
Renders a material layer for the specified triangle.
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | BitmapMaterial | |
Called once per render loop when material is visible.
| Dot3BitmapMaterialF10 |
Method | Defined by | ||
---|---|---|---|
![]() |
Calculates the mapping matrix required to draw the triangle texture to screen.
| BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() |
updateColorTransform():void
Updates the colortransform object applied to the texture from the
color and alpha properties. | BitmapMaterial | |
updateRenderBitmap():void
Updates the texture bitmapData with the colortransform determined from the
color and alpha properties. | Dot3BitmapMaterialF10 |
normalMap | property |
normalMap:BitmapData
[read-only]Returns the bitmapData object being used as the material normal map.
Implementation public function get normalMap():BitmapData
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:Number
[read-write]Coefficient for specular light level.
Implementation public function get specular():Number
public function set specular(value:Number):void
Dot3BitmapMaterialF10 | () | constructor |
public function Dot3BitmapMaterialF10(bitmap:BitmapData, normalMap:BitmapData, init:Object = null)
Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
|
|
normalMap: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:Number (default = 0.7) |
updateMaterial | () | method |
public override function updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
Parameterssource:Object3D |
|
view:View3D |
updateRenderBitmap | () | method |
protected override function updateRenderBitmap():void
Updates the texture bitmapData with the colortransform determined from the color
and alpha
properties.
See also