| Package | sandy.materials |
| Class | public final class ColorMaterial |
| Inheritance | ColorMaterial Material |
Used to show colored faces, possibly with lines at the edges of the faces.
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
The alpha value for this material ( 0 - 1 )
Alpha = 0 means fully transparent, alpha = 1 fully opaque.
| ColorMaterial | ||
![]() | attributes : MaterialAttributes
The attributes of this material.
| Material | |
| color : Number
The color of this material
| ColorMaterial | ||
![]() | filters : Array
The array of filters for this material.
| Material | |
![]() | id : Number
The unique id of this material
| Material | |
![]() | lightingEnable : Boolean = false
Specify is the material can receive light and apply the lightAttributes if specified.
| Material | |
![]() | modified : Boolean
The modified state of this material.
| Material | |
![]() | repeat : Boolean
The repeat property (?).
| Material | |
![]() | type : MaterialType
The material type of this material.
| Material | |
![]() | useVertexNormal : Boolean = false
Specify if the material use the vertex normal information
Default value is set to false.
| Material | |
| Method | Defined by | ||
|---|---|---|---|
|
ColorMaterial(p_nColor:uint = 0x00, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)
Creates a new ColorMaterial.
| ColorMaterial | ||
![]() |
Not used in this version of Sandy.
| Material | |
|
Renders this material on the face it dresses
| ColorMaterial | ||
| alpha | property |
alpha:Number [read-write]The alpha value for this material ( 0 - 1 ) Alpha = 0 means fully transparent, alpha = 1 fully opaque.
Implementation public function get alpha():Number
public function set alpha(value:Number):void
| color | property |
color:Number [read-write]The color of this material
Implementation public function get color():Number
public function set color(value:Number):void
| ColorMaterial | () | constructor |
public function ColorMaterial(p_nColor:uint = 0x00, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)Creates a new ColorMaterial.
Parametersp_nColor:uint (default = 0x00) — The color for this material in hexadecimal notation
|
|
p_nAlpha:Number (default = 1) — The alpha value in percent of full opacity ( 0 - 1 )
|
|
p_oAttr:MaterialAttributes (default = null) — The attributes for this material
|
| renderPolygon | () | method |
public override function renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):voidRenders this material on the face it dresses
Parametersp_oScene:Scene3D — The current scene
|
|
p_oPolygon:Polygon — The face to be rendered
|
|
p_mcContainer:Sprite — The container to draw on
|