Package | away3d.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial ![]() ![]() ![]() ![]() |
Subclasses | LayerMaterial, ShadingColorMaterial |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Determines the alpha value of the material
| WireColorMaterial | |
![]() | color : uint
24 bit color value representing the material color
| WireColorMaterial | |
debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| ColorMaterial | ||
![]() | id : int
Unique identifier
| Material | |
![]() | 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 |
Property | Defined by | ||
---|---|---|---|
![]() | _alpha : Number | WireColorMaterial | |
![]() | _color : uint | WireColorMaterial | |
_debug : Boolean | ColorMaterial | ||
![]() | ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| WireframeMaterial | |
![]() | _thickness : Number | WireframeMaterial | |
![]() | _wireAlpha : Number | WireframeMaterial | |
![]() | _wireColor : uint = 0x0 | WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
ColorMaterial
(color:* = null, init:Object = null)
Creates a new
ColorMaterial object. | ColorMaterial | ||
![]() |
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 |
_debug | property |
protected var _debug:Boolean
debug | property |
debug:Boolean
[read-write]Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
Implementation public function get debug():Boolean
public function set debug(value:Boolean):void
ColorMaterial | () | constructor |
public function ColorMaterial(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.
|
debug:Boolean (default = false) |
clone | () | method |
public override function clone(material:Material = null):Material
Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as ColorMaterial;
Parametersmaterial:Material (default = null ) — [optional] The new material instance into which all properties are copied. The default is ColorMaterial .
|
Material —
The new material instance with duplicated properties applied.
|