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
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
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
Returns the width of the bitmapData being used as the shader environment map.
| EnviroShader | ||
id : int
Unique identifier
| Material | ||
mode : String
Setting for possible mapping methods.
| EnviroShader | ||
reflectiveness : Number [write-only]
| 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
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number
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 | ||
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
[read-write]Defines the color of the material.
Implementation public function get color():uint
public function set color(value:uint):void
reflectiveness | property |
reflectiveness:Number
[write-only]Implementation
public function set reflectiveness(value:Number):void
EnviroColorMaterial | () | constructor |
public function EnviroColorMaterial(color:*, enviroMap:BitmapData, init:Object = null)
Parameters
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.
|