Package | away3d.materials.shaders |
Class | public class EnviroShader |
Inheritance | EnviroShader ![]() ![]() |
Subclasses | EnviroColorMaterial |
Property | Defined by | ||
---|---|---|---|
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 | |
![]() | debug : Boolean
Determines if faces with the shader applied are drawn with outlines
| AbstractShader | |
height : Number [read-only]
Returns the width of the bitmapData being used as the shader environment map.
| EnviroShader | ||
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 | |
![]() | visible : Boolean
Indicates whether the material is visible
| AbstractShader | |
width : Number [read-only]
Returns the height of the bitmapData being used as the shader environment map.
| EnviroShader |
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
| AbstractShader | |
![]() |
| AbstractShader | |
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| AbstractShader | |
![]() |
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
| AbstractShader | |
Renders a material layer for the specified triangle.
| EnviroShader | ||
Called once per render loop when material is visible.
| EnviroShader |
Method | Defined by | ||
---|---|---|---|
| EnviroShader | ||
![]() |
Returns a shape object for use by light shaders
| AbstractShader | |
Calculates the mapping matrix required to draw the triangle texture to screen.
| EnviroShader | ||
![]() |
getShape(layer:Sprite):Shape
Returns a shape object for use by environment shaders.
| AbstractShader | |
Renders the shader to the specified face.
| 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) |
clearFaces | () | method |
protected function clearFaces(source:Object3D, view:View3D):void
Parameters
source:Object3D |
|
view:View3D |
getMapping | () | method |
protected function getMapping(source:Mesh, face:Face):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
Parameterssource:Mesh — The source object of the material.
|
|
face:Face — The face object of the material.
|
Matrix — The required matrix object.
|
renderLayer | () | method |
public override function renderLayer(tri:DrawTriangle, layer:Sprite, level:int):void
Renders a material layer for the specified triangle.
Parameterstri:DrawTriangle — The drawtriangle used for render information.
|
|
layer:Sprite — The parent layer into which the triangle is drawn.
|
|
level:int — Defines the sprite level for the layer.
|
renderShader | () | method |
protected override function renderShader(tri:DrawTriangle):void
Renders the shader to the specified face.
Parameterstri:DrawTriangle — The face object being rendered.
|
updateMaterial | () | method |
public override function updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
Parameterssource:Object3D |
|
view:View3D |