Packageaway3d.materials
Interfacepublic interface ILayerMaterial extends IMaterial
ImplementorsAbstractShader, 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
 Inheritedvisible : Boolean
Indicates whether the material is visible
IMaterial
Public Methods
 MethodDefined by
  
renderFace(face:Face, containerRect:Rectangle, parentFaceVO:FaceVO):FaceVO
Renders a bitmapData surface object for the speficied face.
ILayerMaterial
  
renderLayer(tri:DrawTriangle, layer:Sprite, level:int):void
Renders a material layer for the specified triangle.
ILayerMaterial
Method detail
renderFace()method
public function renderFace(face:Face, containerRect:Rectangle, parentFaceVO:FaceVO):FaceVO

Renders a bitmapData surface object for the speficied face.

Parameters
face:Face — The face object onto which the rendered sufrace is applied.
 
containerRect:Rectangle — The rectangle object defining the bounds of the face in uv-space.
 
parentFaceVO:FaceVO — The value object of the preceeding surface.

Returns
FaceVO

See also

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

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.
Wiki link
Click to go to the wiki page for 'away3d.materials.ILayerMaterial'

Code examples
There are currently no examples for this class

Comments
No comments found
Please leave a comment

Please leave a comment

security image