Package | away3d.materials |
Class | public class DepthBitmapMaterial |
Inheritance | DepthBitmapMaterial ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Defines an alpha value for the layer container.
| CompositeMaterial | |
bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the material texture.
| DepthBitmapMaterial | ||
![]() | blendMode : String
Defines a blendMode value for the layer container.
| CompositeMaterial | |
![]() | color : uint
Defines a colored tint for the layer container.
| CompositeMaterial | |
![]() | id : int
Unique identifier
| CompositeMaterial | |
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 | ||
![]() | visible : Boolean
Indicates whether the material is visible
| CompositeMaterial |
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
| CompositeMaterial | |
![]() | CompositeMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| CompositeMaterial | |
![]() |
Renders a material layer for the specified triangle.
| CompositeMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | CompositeMaterial | |
![]() |
Called once per render loop when material is visible.
| CompositeMaterial |
bitmap | property |
bitmap:BitmapData
[read-only]Returns the bitmapData object being used as the material texture.
Implementation public function get bitmap():BitmapData
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
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) |