Package | away3d.materials.shaders |
Class | public class EnviroShader |
Inheritance | EnviroShader AbstractShader LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Subclasses | EnviroColorMaterial |
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
24 bit color value representing the material color
| WireColorMaterial | ||
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
Unique identifier
| Material | ||
mode : String
Setting for possible mapping methods.
| EnviroShader | ||
reflectiveness : Number
Coefficient for the reflectiveness of the environment map.
| EnviroShader | ||
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 [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 | ||
---|---|---|---|
EnviroShader
(bitmap:BitmapData, init:Object = null)
Creates a new
EnviroShader object. | EnviroShader | ||
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 |
Method | Defined by | ||
---|---|---|---|
calcMapping(priIndex:uint, mapping:Matrix):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
| EnviroShader | ||
calcUVT(priIndex:uint, uvt:Vector):Vector
| EnviroShader | ||
getDefaultThickness():Number
| WireframeMaterial | ||
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
| AbstractShader | ||
getUVData(priIndex:uint):Vector
| AbstractShader | ||
renderShader(priIndex:uint):void
Renders the shader to the specified face.
| EnviroShader | ||
| EnviroShader |
bitmap | property |
bitmap:BitmapData
[read-only]Returns the bitmapData object being used as the shader environment map.
Implementation public function get bitmap():BitmapData
height | property |
height:Number
[read-only]Returns the width of the bitmapData being used as the shader environment map.
Implementation public function get height():Number
mode | property |
public var mode:String
Setting for possible mapping methods.
reflectiveness | property |
reflectiveness:Number
[read-write]Coefficient for the reflectiveness of the environment map.
Implementation public function get reflectiveness():Number
public function set reflectiveness(value:Number):void
width | property |
width:Number
[read-only]Returns the height of the bitmapData being used as the shader environment map.
Implementation public function get width():Number
EnviroShader | () | constructor |
public function EnviroShader(bitmap:BitmapData, init:Object = null)
Parameters
bitmap: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.
|
mode:String (default = "linear") | |
reflectiveness:Number (default = 0.5, min:0, max:1) |
calcMapping | () | method |
protected override function calcMapping(priIndex:uint, mapping:Matrix):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
ParameterspriIndex:uint — The source object of the material.
|
|
mapping:Matrix — The face object of the material.
|
Matrix — The required matrix object.
|
calcUVT | () | method |
protected override function calcUVT(priIndex:uint, uvt:Vector):Vector
Parameters
priIndex:uint |
|
uvt:Vector |
Vector |
renderShader | () | method |
protected override function renderShader(priIndex:uint):void
Renders the shader to the specified face.
ParameterspriIndex:uint — The index of the primitive being rendered.
|
updateFaces | () | method |
protected function updateFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D |
|
view:View3D |