Packageaway3d.materials
Interfacepublic interface ILayerMaterial extends IMaterial
ImplementorsAbstractShader, BitmapMaskMaterial, BitmapMaterial, BitmapMaterialContainer, CompositeMaterial

Interface for materials that can be layered using CompositeMaterial or BitmapMaterialContainer.

See also

away3d.materials.CompositeMaterial
away3d.materials.BitmapMaterialContainer
Public Properties
 PropertyDefined by
 Inheritedid : int
Unique identifier
IMaterial
 Inheritedvisible : Boolean
Indicates whether the material is visible
IMaterial
Public Methods
 MethodDefined by
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
IMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
IMaterial
  
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
ILayerMaterial
  
renderLayer(tri:DrawTriangle, layer:Sprite, level:int):int
Renders a material layer for the specified triangle.
ILayerMaterial
 Inherited
updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
IMaterial
Method detail
renderBitmapLayer()method
public function renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO

Renders a bitmapData surface object for the speficied face.

Parameters
tri:DrawTriangle — The face object onto which the rendered sufrace is applied.
 
containerRect:Rectangle — The rectangle object defining the bounds of the face in uv-space.
 
parentFaceMaterialVO:FaceMaterialVO — The value object of the preceeding surface.

Returns
FaceMaterialVO

See also

away3d.materials.BitmapMaterailContainer
renderLayer()method 
public function renderLayer(tri:DrawTriangle, layer:Sprite, level:int):int

Renders a material layer for the specified triangle.

Parameters
tri: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.

Returns
int
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments