Package | away3d.materials |
Class | public class ShadingColorMaterial |
Inheritance | ShadingColorMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number
Determines the alpha value of the material
| WireColorMaterial | ||
ambient : uint
Defines a color value for ambient light. | ShadingColorMaterial | ||
cache : Boolean
Defines whether the resulting shaded color of the surface should be cached. | ShadingColorMaterial | ||
color : uint [override]
Defines the color, A string, hex value or colorname representing the color of the material. | ShadingColorMaterial | ||
debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines. | ColorMaterial | ||
diffuse : uint
Defines a color value for diffuse light. | ShadingColorMaterial | ||
id : int [read-only]
Unique identifier
| Material | ||
shininess : Number
Coefficient for shininess level
| ShadingColorMaterial | ||
specular : uint
Defines a color value for specular light. | ShadingColorMaterial | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
visible : Boolean [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined By | ||
---|---|---|---|
ShadingColorMaterial(color:* = null, init:Object = null)
Creates a new ShadingColorMaterial object. | ShadingColorMaterial | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
[override]
Duplicates the material properties to another material object. | ColorMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
ambient | property |
public var ambient:uint
Defines a color value for ambient light.
cache | property |
public var cache:Boolean
Defines whether the resulting shaded color of the surface should be cached.
color | property |
color:uint
[override] Defines the color, A string, hex value or colorname representing the color of the material.
public function get color():uint
public function set color(value:uint):void
diffuse | property |
public var diffuse:uint
Defines a color value for diffuse light.
shininess | property |
public var shininess:Number
Coefficient for shininess level
specular | property |
public var specular:uint
Defines a color value for specular light.
ShadingColorMaterial | () | Constructor |
public function ShadingColorMaterial(color:* = null, init:Object = null)
Creates a new ShadingColorMaterial
object.
color:* (default = null ) — A string, hex value or colorname representing the color of the material.
| |
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|