| Package | away3d.materials |
| Class | public class EnviroColorMaterial |
| Inheritance | EnviroColorMaterial EnviroShader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number
Determines the alpha value of the material
| WireColorMaterial | |
![]() | bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the shader environment map. | EnviroShader | |
![]() | blendMode : String
Defines a blendMode value for the shader bitmap. | AbstractShader | |
| color : uint [override]
Defines the color of the material. | EnviroColorMaterial | ||
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines. | ColorMaterial | |
![]() | height : Number [read-only]
Returns the width of the bitmapData being used as the shader environment map. | EnviroShader | |
![]() | id : int [read-only]
Unique identifier
| Material | |
![]() | mode : String
Setting for possible mapping methods. | EnviroShader | |
| reflectiveness : Number [override]
Coefficient for the reflectiveness of the environment map. | EnviroColorMaterial | ||
![]() | smooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
| AbstractShader | |
![]() | thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | |
![]() | visible : Boolean [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | |
![]() | width : Number [read-only]
Returns the height of the bitmapData being used as the shader environment map. | EnviroShader | |
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial | |
| Method | Defined By | ||
|---|---|---|---|
EnviroColorMaterial(color:*, enviroMap:BitmapData, init:Object = null)
Creates a new EnviroColorMaterial object. | EnviroColorMaterial | ||
![]() | 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 | |
| color | property |
color:uint[override] Defines the color of the material.
public function get color():uint public function set color(value:uint):void| reflectiveness | property |
reflectiveness:Number[override] Coefficient for the reflectiveness of the environment map.
public function get reflectiveness():Number public function set reflectiveness(value:Number):void| EnviroColorMaterial | () | Constructor |
public function EnviroColorMaterial(color:*, enviroMap:BitmapData, init:Object = null)
Creates a new EnviroColorMaterial object.
color:* — A string, hex value or colorname representing the color of the material.
| |
enviroMap:BitmapData — The bitmapData object to be used as the material's environment map.
| |
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|