Packageaway3d.loaders.data
Classpublic class MaterialData

Data class for the material data of a face.

See also

away3d.loaders.data.FaceData
Public Properties
 PropertyDefined by
  ambientColor : int
Optional ambient color of the material.
MaterialData
  diffuseColor : int
Optional diffuse color of the material.
MaterialData
  faces : Array
Array of indexes representing the faces that use the material.
MaterialData
  material : ITriangleMaterial
Reference to the material object of the resulting material.
MaterialData
  materialType : String = "wireframeMaterial"
String representing the material type.
MaterialData
  name : String
The name of the material used as a unique reference.
MaterialData
  specularColor : int
Optional specular color of the material.
MaterialData
  textureBitmap : BitmapData
Reference to the bitmapData object of the texture image.
MaterialData
  textureFileName : String
Reference to the filename of the texture image.
MaterialData
Public Constants
 ConstantDefined by
  SHADING_MATERIAL : String = "shadingMaterial"
[static] String representing a shaded material.
MaterialData
  TEXTURE_MATERIAL : String = "textureMaterial"
[static] String representing a texture material.
MaterialData
  WIREFRAME_MATERIAL : String = "wireframeMaterial"
[static] String representing a wireframe material.
MaterialData
Property detail
ambientColorproperty
public var ambientColor:int

Optional ambient color of the material.

diffuseColorproperty 
public var diffuseColor:int

Optional diffuse color of the material.

facesproperty 
public var faces:Array

Array of indexes representing the faces that use the material.

materialproperty 
public var material:ITriangleMaterial

Reference to the material object of the resulting material.

materialTypeproperty 
public var materialType:String = "wireframeMaterial"

String representing the material type.

nameproperty 
public var name:String

The name of the material used as a unique reference.

specularColorproperty 
public var specularColor:int

Optional specular color of the material.

textureBitmapproperty 
public var textureBitmap:BitmapData

Reference to the bitmapData object of the texture image.

textureFileNameproperty 
public var textureFileName:String

Reference to the filename of the texture image.

Constant detail
SHADING_MATERIALconstant
public static const SHADING_MATERIAL:String = "shadingMaterial"

String representing a shaded material.

TEXTURE_MATERIALconstant 
public static const TEXTURE_MATERIAL:String = "textureMaterial"

String representing a texture material.

WIREFRAME_MATERIALconstant 
public static const WIREFRAME_MATERIAL:String = "wireframeMaterial"

String representing a wireframe material.

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

Code examples

Comments