Package | away3d.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial DefaultMaterialBase MaterialBase |
Property | Defined by | ||
---|---|---|---|
alpha : Number
The alpha of the surface.
| ColorMaterial | ||
ambient : Number
The strength of the ambient reflection.
| DefaultMaterialBase | ||
ambientColor : uint
The colour of the ambient reflection.
| DefaultMaterialBase | ||
ambientMethod : BasicAmbientMethod
The method to perform diffuse shading.
| DefaultMaterialBase | ||
blendMode : String
The blend mode to use when drawing this renderable.
| MaterialBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling.
| MaterialBase | ||
color : uint
The diffuse color of the surface.
| ColorMaterial | ||
colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with.
| DefaultMaterialBase | ||
diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading.
| DefaultMaterialBase | ||
extra : Object
An object to contain any extra data
| MaterialBase | ||
gloss : Number
The sharpness of the specular highlight.
| DefaultMaterialBase | ||
lights : Array | MaterialBase | ||
materialNamespace : String
The namespace of the material, used by the MaterialLibrary.
| MaterialBase | ||
mipmap : Boolean | DefaultMaterialBase | ||
name : String
The name of the material.
| MaterialBase | ||
normalMap : BitmapData
The tangent space normal map to influence the direction of the surface for each texel.
| DefaultMaterialBase | ||
repeat : Boolean
Indicates whether or not any used textures should be tiled.
| MaterialBase | ||
requiresBlending : Boolean [read-only]
Indicates whether or not the material requires alpha blending during rendering.
| ColorMaterial | ||
shadowMethod : ShadingMethodBase
The method to perform diffuse shading.
| DefaultMaterialBase | ||
smooth : Boolean
Indicates whether or not any used textures should use smoothing.
| MaterialBase | ||
specular : Number
The overall strength of the specular reflection.
| DefaultMaterialBase | ||
specularColor : uint
The colour of the specular reflection.
| DefaultMaterialBase | ||
specularMap : BitmapData
A specular map that defines the strength of specular reflections for each texel.
| DefaultMaterialBase | ||
specularMethod : BasicSpecularMethod
The method to perform specular shading.
| DefaultMaterialBase | ||
uniqueId : uint
The unique id assigned to the material by the MaterialLibrary.
| MaterialBase |
Method | Defined by | ||
---|---|---|---|
ColorMaterial
(color:uint, alpha:Number = 1)
Creates a new ColorMaterial object.
| ColorMaterial | ||
DefaultMaterialBase | |||
DefaultMaterialBase | |||
dispose(deep:Boolean):void
| DefaultMaterialBase | ||
isBitmapDataValid(bitmapData:BitmapData, id:uint = 0):Boolean
| DefaultMaterialBase | ||
DefaultMaterialBase | |||
setNameAndSpace(name:String, materialNameSpace:String):void
Sets the materials name and namespace.
| MaterialBase |
alpha | property |
alpha:Number
[read-write]The alpha of the surface.
Implementation public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
[read-write]The diffuse color of the surface.
Implementation public function get color():uint
public function set color(value:uint):void
requiresBlending | property |
requiresBlending:Boolean
[read-only]Indicates whether or not the material requires alpha blending during rendering.
Implementation public function get requiresBlending():Boolean
ColorMaterial | () | constructor |
public function ColorMaterial(color:uint, alpha:Number = 1)
Parameters
color:uint — The material's diffuse surface color.
|
|
alpha:Number (default = 1 ) — The material's surface alpha.
|