Package | away3d.materials |
Class | public class ShadingColorMaterial |
Inheritance | ShadingColorMaterial ![]() ![]() ![]() ![]() ![]() |
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
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
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
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 | |
![]() |
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
[read-write]Defines the color, A string, hex value or colorname representing the color of the material.
Implementation 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)
Parameters
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.
|
ambient:Color (default = color) | |
diffuse:Color (default = color) | |
specular:Color (default = color) | |
shininess:Number (default = 20) | |
cache:Boolean (default = false) |