Packageaway3d.loaders.data
Classpublic class MaterialData
InheritanceMaterialData Inheritance Object

Data class for the material data of a face.

See also

away3d.loaders.data.FaceData


Public Properties
 PropertyDefined By
  ambientColor : uint
Optional ambient color of the material.
MaterialData
  diffuseColor : uint
Optional diffuse color of the material.
MaterialData
  elements : Array
Array of indexes representing the elements that use the material.
MaterialData
  material : Material
defines 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
  shininess : Number
Optional shininess of the material.
MaterialData
  specularColor : uint
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 Methods
 MethodDefined By
  
MaterialData
Public Constants
 ConstantDefined By
  COLOR_MATERIAL : String = colorMaterial
[static] String representing a color material.
MaterialData
  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:uint

Optional ambient color of the material.

diffuseColorproperty 
public var diffuseColor:uint

Optional diffuse color of the material.

elementsproperty 
public var elements:Array

Array of indexes representing the elements that use the material.

materialproperty 
material:Material

defines the material object of the resulting material.


Implementation
    public function get material():Material
    public function set material(value:Material):void
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.

shininessproperty 
public var shininess:Number

Optional shininess of the material.

specularColorproperty 
public var specularColor:uint

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.

Method Detail
clone()method
public function clone(targetObj:Object3D):MaterialData

Parameters

targetObj:Object3D

Returns
MaterialData
Constant Detail
COLOR_MATERIALConstant
public static const COLOR_MATERIAL:String = colorMaterial

String representing a color material.

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.