| Package | away3d.materials |
| Class | public class ColorMaterial |
| Implements | IFogMaterial, ITriangleMaterial |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
Determines the alpha value of the material
| ColorMaterial | ||
| color : uint
24 bit color value representing the material color
| ColorMaterial | ||
| visible : Boolean [read-only]
Indicates whether the material is visible
| ColorMaterial | ||
| Property | Defined by | ||
|---|---|---|---|
| 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.
| ColorMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
ColorMaterial
(color:* = null, init:Object = null)
Creates a new
ColorMaterial object. | ColorMaterial | ||
|
Duplicates the material's properties to another
IFogMaterial object
| ColorMaterial | ||
|
Sends the material data coupled with data from the DrawFog primitive to the render session
| ColorMaterial | ||
|
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | ColorMaterial | ||
| alpha | property |
alpha:Number [read-write]Determines the alpha value of the material
Implementation public function get alpha():Number
public function set alpha(value:Number):void
| color | property |
public var color:uint
24 bit color value representing the material color
| ini | property |
protected var 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.
| visible | property |
visible:Boolean [read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
| ColorMaterial | () | constructor |
public function ColorMaterial(color:* = null, init:Object = null)
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.
|
alpha:Number (default = 1, min:0, max:1) |
| clone | () | method |
public function clone():IFogMaterial
Duplicates the material's properties to another IFogMaterial object
IFogMaterial —
The new object instance with duplicated properties applied
|
| renderFog | () | method |
public function renderFog(fog:DrawFog):void
Sends the material data coupled with data from the DrawFog primitive to the render session
Parametersfog:DrawFog |
| renderTriangle | () | method |
public function renderTriangle(tri:DrawTriangle):void
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
tri:DrawTriangle |