Package | away3d.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
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 [read-only]
Unique identifier
| Material | ||
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 |
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 | ||
[override]
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
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
public function get debug():Boolean
public function set debug(value:Boolean):void
ColorMaterial | () | Constructor |
public function ColorMaterial(color:* = null, init:Object = null)
Creates a new ColorMaterial
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.
|
clone | () | method |
override public function clone(material:Material = null):Material
Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as ColorMaterial;
Parameters
material: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.
|