| Package | away3d.materials |
| Class | public class EnviroColorMaterial |
| Inheritance | EnviroColorMaterial EnviroShader AbstractShader flash.events.EventDispatcher |
| Implements | ITriangleMaterial |
| Property | Defined by | ||
|---|---|---|---|
![]() | 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
Determines if faces with the shader applied are drawn with outlines
| AbstractShader | |
![]() | height : Number
Returns the width of the bitmapData being used as the shader environment map.
| EnviroShader | |
![]() | mode : String
Setting for possible mapping methods.
| EnviroShader | |
| reflectiveness : Number [write-only]
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 | |
![]() | visible : Boolean
Indicates whether the material is visible
| AbstractShader | |
![]() | width : Number
Returns the height of the bitmapData being used as the shader environment map.
| EnviroShader | |
| Method | Defined by | ||
|---|---|---|---|
|
EnviroColorMaterial
(color:*, enviroMap:BitmapData, init:Object = null)
Creates a new
EnviroColorMaterial object. | EnviroColorMaterial | ||
![]() |
| EnviroShader | |
![]() |
Renders a bitmapData surface object for the speficied face.
| AbstractShader | |
![]() |
Renders a material layer for the specified triangle.
| EnviroShader | |
|
Sends the material data coupled with data from the DrawTriangle primitive to the render session.
| EnviroColorMaterial | ||
![]() |
Called once per render loop when material is visible.
| EnviroShader | |
| 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]Coefficient for the reflectiveness of the environment map.
Implementation public function set reflectiveness(value:Number):void
| EnviroColorMaterial | () | constructor |
public function EnviroColorMaterial(color:*, enviroMap:BitmapData, init:Object = null)
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.
|
| renderTriangle | () | method |
public function renderTriangle(tri:DrawTriangle):void
Sends the material data coupled with data from the DrawTriangle primitive to the render session.
Parameterstri:DrawTriangle |