Package | away3d.materials |
Class | public class WhiteShadingBitmapMaterial |
Inheritance | WhiteShadingBitmapMaterial ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | alpha : Number [override]
Defines an alpha value for the texture bitmap. | BitmapMaterial | |
![]() | bitmap : BitmapData
Defines the bitmapData object being used as the material texture. | BitmapMaterial | |
![]() | blendMode : String
Defines a blendMode value for the texture bitmap. | BitmapMaterial | |
![]() | color : uint [override]
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. | ColorMaterial | |
![]() | height : Number [read-only]
Returns the height of the bitmapData being used as the material texture. | BitmapMaterial | |
![]() | id : int [read-only]
Unique identifier
| Material | |
![]() | repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
shininess : Number
Coefficient for shininess level
| WhiteShadingBitmapMaterial | ||
![]() | 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 | |
![]() | 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 material texture. | BitmapMaterial | |
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined By | ||
---|---|---|---|
WhiteShadingBitmapMaterial(bitmap:BitmapData, init:Object = null)
Creates a new WhiteShadingBitmapMaterial object. | WhiteShadingBitmapMaterial | ||
![]() | addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
clearCache():void
Clear the cached bitmaps used for shading
| WhiteShadingBitmapMaterial | ||
![]() | [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. | BitmapMaterial | |
![]() | removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Method | Defined By | ||
---|---|---|---|
![]() | getDefaultThickness():Number | WireframeMaterial | |
![]() | BitmapMaterial | ||
[override] | WhiteShadingBitmapMaterial | ||
![]() | renderSource(source:Object3D, containerRect:Rectangle, mapping:Matrix):void | BitmapMaterial | |
![]() | updateColorTransform():void
Updates the colortransform object applied to the texture from the color and alpha properties. | BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() | updateRenderBitmap():void
Updates the texture bitmapData with the colortransform determined from the color and alpha properties. | BitmapMaterial |
shininess | property |
public var shininess:Number
Coefficient for shininess level
WhiteShadingBitmapMaterial | () | Constructor |
public function WhiteShadingBitmapMaterial(bitmap:BitmapData, init:Object = null)
Creates a new WhiteShadingBitmapMaterial
object.
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
| |
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
clearCache | () | method |
public function clearCache():void
Clear the cached bitmaps used for shading
invalidateFaces | () | method |
override protected function invalidateFaces(source:Object3D = null, view:View3D = null):void
Parameters
source:Object3D (default = null )
| |
view:View3D (default = null )
|