Package | away3d.materials |
Class | public class DepthBitmapMaterial |
Inheritance | DepthBitmapMaterial CompositeMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
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
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
Returns the height of the bitmapData being used as the material texture.
| CompositeMaterial | ||
id : int
Unique identifier
| Material | ||
maxColor : uint
Coefficient for the color shading at maxZ.
| DepthBitmapMaterial | ||
maxZ : Number
Coefficient for the maximum Z of the depth map.
| DepthBitmapMaterial | ||
minColor : uint
Coefficient for the color shading at minZ.
| DepthBitmapMaterial | ||
minZ : Number
Coefficient for the minimum Z of the depth map.
| DepthBitmapMaterial | ||
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 | ||
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 | ||
surfaceCache : Boolean | CompositeMaterial | ||
textureMaterial : BitmapMaterial
[read-only]
Returns the bitmap material being used as the material texture.
| DepthBitmapMaterial | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
transparent : Boolean
Defines whether the caching bitmapData objects are transparent
| CompositeMaterial | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number
Returns the width of the bitmapData being used as the material texture.
| CompositeMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
DepthBitmapMaterial
(bitmap:BitmapData, init:Object = null)
Creates a new
DepthBitmapMaterial object. | DepthBitmapMaterial | ||
CompositeMaterial | |||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
clearMaterials():void
| CompositeMaterial | ||
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 | ||
CompositeMaterial | |||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
maxColor | property |
maxColor:uint
[read-write]Coefficient for the color shading at maxZ.
Implementation public function get maxColor():uint
public function set maxColor(value:uint):void
maxZ | property |
maxZ:Number
[read-write]Coefficient for the maximum Z of the depth map.
Implementation public function get maxZ():Number
public function set maxZ(value:Number):void
minColor | property |
minColor:uint
[read-write]Coefficient for the color shading at minZ.
Implementation public function get minColor():uint
public function set minColor(value:uint):void
minZ | property |
minZ:Number
[read-write]Coefficient for the minimum Z of the depth map.
Implementation public function get minZ():Number
public function set minZ(value:Number):void
textureMaterial | property |
textureMaterial:BitmapMaterial
[read-only]Returns the bitmap material being used as the material texture.
Implementation public function get textureMaterial():BitmapMaterial
DepthBitmapMaterial | () | constructor |
public function DepthBitmapMaterial(bitmap:BitmapData, init:Object = null)
Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
|
|
init:Object (default = null ) — The bitmapData object to be used as the material's normal map.
|
minZ:Number (default = 500) | |
maxZ:Number (default = 2000) | |
minColor:Number (default = 0xFFFFFF) | |
maxColor:Number (default = 0x000000) |