| Package | away3d.loaders.data |
| Class | public class MaterialData |
| Inheritance | MaterialData Object |
See also
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
| MaterialData | |||
| Constant | Defined 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 | ||
| ambientColor | property |
public var ambientColor:uintOptional ambient color of the material.
| diffuseColor | property |
public var diffuseColor:uintOptional diffuse color of the material.
| elements | property |
public var elements:ArrayArray of indexes representing the elements that use the material.
| material | property |
material:Materialdefines the material object of the resulting material.
public function get material():Material public function set material(value:Material):void| materialType | property |
public var materialType:String = wireframeMaterialString representing the material type.
| name | property |
public var name:StringThe name of the material used as a unique reference.
| shininess | property |
public var shininess:NumberOptional shininess of the material.
| specularColor | property |
public var specularColor:uintOptional specular color of the material.
| textureBitmap | property |
public var textureBitmap:BitmapDataReference to the bitmapData object of the texture image.
| textureFileName | property |
public var textureFileName:StringReference to the filename of the texture image.
| clone | () | method |
public function clone(targetObj:Object3D):MaterialDataParameters
targetObj:Object3D |
MaterialData |
| COLOR_MATERIAL | Constant |
public static const COLOR_MATERIAL:String = colorMaterialString representing a color material.
| SHADING_MATERIAL | Constant |
public static const SHADING_MATERIAL:String = shadingMaterialString representing a shaded material.
| TEXTURE_MATERIAL | Constant |
public static const TEXTURE_MATERIAL:String = textureMaterialString representing a texture material.
| WIREFRAME_MATERIAL | Constant |
public static const WIREFRAME_MATERIAL:String = wireframeMaterialString representing a wireframe material.