Package | away3d.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial SinglePassMaterialBase MaterialBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The alpha of the surface. | ColorMaterial | ||
alphaBlending : Boolean
Indicate whether or not the material has transparency. | SinglePassMaterialBase | ||
alphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have
already been premultiplied. | MaterialBase | ||
alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | SinglePassMaterialBase | ||
ambient : Number
The strength of the ambient reflection. | SinglePassMaterialBase | ||
ambientColor : uint
The colour of the ambient reflection. | SinglePassMaterialBase | ||
ambientMethod : BasicAmbientMethod
The method to perform ambient shading. | SinglePassMaterialBase | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | MaterialBase | ||
blendMode : String [override] | SinglePassMaterialBase | ||
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. | SinglePassMaterialBase | ||
depthCompareMode : String [override] | SinglePassMaterialBase | ||
diffuseLightSources : uint | SinglePassMaterialBase | ||
diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading. | SinglePassMaterialBase | ||
extra : Object
An object to contain any extra data
| MaterialBase | ||
gloss : Number
The sharpness of the specular highlight. | SinglePassMaterialBase | ||
lightPicker : LightPickerBase [override] | SinglePassMaterialBase | ||
mipmap : Boolean [override]
Indicates whether or not any used textures should use mipmapping. | SinglePassMaterialBase | ||
name : String [override] | MaterialBase | ||
normalMap : Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel. | SinglePassMaterialBase | ||
normalMethod : BasicNormalMethod
The method to generate the (tangent-space) normal. | SinglePassMaterialBase | ||
numMethods : int [read-only] | SinglePassMaterialBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
repeat : Boolean
Indicates whether or not any used textures should be tiled. | MaterialBase | ||
requiresBlending : Boolean [override] [read-only]
Indicates whether or not the material requires alpha blending during rendering. | ColorMaterial | ||
shadowMethod : ShadowMapMethodBase
The method to render shadows cast on this surface. | SinglePassMaterialBase | ||
smooth : Boolean
Indicates whether or not any used textures should use smoothing. | MaterialBase | ||
specular : Number
The overall strength of the specular reflection. | SinglePassMaterialBase | ||
specularColor : uint
The colour of the specular reflection. | SinglePassMaterialBase | ||
specularLightSources : uint | SinglePassMaterialBase | ||
specularMap : Texture2DBase
A specular map that defines the strength of specular reflections for each texel in the red channel, and the gloss factor in the green channel. | SinglePassMaterialBase | ||
specularMethod : BasicSpecularMethod
The method to perform specular shading. | SinglePassMaterialBase | ||
uniqueId : uint [read-only]
The unique id assigned to the material by the MaterialLibrary. | MaterialBase |
Method | Defined By | ||
---|---|---|---|
ColorMaterial(color:uint = 0xcccccc, alpha:Number = 1)
Creates a new ColorMaterial object. | ColorMaterial | ||
addMethod(method:EffectMethodBase):void
Adds a shading method to the end of the shader. | SinglePassMaterialBase | ||
addMethodAt(method:EffectMethodBase, index:int):void
Adds a shading method to the end of a shader, at the specified index amongst
the methods in that section of the shader. | SinglePassMaterialBase | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void
Cleans up any resources used by the current object. | MaterialBase | ||
getMethodAt(index:int):EffectMethodBase | SinglePassMaterialBase | ||
hasMethod(method:EffectMethodBase):Boolean | SinglePassMaterialBase | ||
removeMethod(method:EffectMethodBase):void | SinglePassMaterialBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
alpha | property |
alpha:Number
The alpha of the surface.
public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
The diffuse color of the surface.
public function get color():uint
public function set color(value:uint):void
requiresBlending | property |
requiresBlending:Boolean
[read-only] [override] Indicates whether or not the material requires alpha blending during rendering.
public function get requiresBlending():Boolean
ColorMaterial | () | Constructor |
public function ColorMaterial(color:uint = 0xcccccc, alpha:Number = 1)
Creates a new ColorMaterial object.
Parameterscolor:uint (default = 0xcccccc ) — The material's diffuse surface color.
| |
alpha:Number (default = 1 ) — The material's surface alpha.
|