Packageaway3d.materials
Classpublic class EnviroColorMaterial
InheritanceEnviroColorMaterial Inheritance EnviroShader Inheritance AbstractShader Inheritance flash.events.EventDispatcher
ImplementsITriangleMaterial

Color material with environment shading.

Public Properties
 PropertyDefined by
 Inheritedbitmap : BitmapData
Returns the bitmapData object being used as the shader environment map.
EnviroShader
 InheritedblendMode : String
Defines a blendMode value for the shader bitmap.
AbstractShader
  color : uint
Defines the color of the material.
EnviroColorMaterial
 Inheriteddebug : Boolean
Determines if faces with the shader applied are drawn with outlines
AbstractShader
 Inheritedheight : Number
Returns the width of the bitmapData being used as the shader environment map.
EnviroShader
 Inheritedid : int
Unique identifier
AbstractShader
 Inheritedmode : String
Setting for possible mapping methods.
EnviroShader
  reflectiveness : Number
[write-only]
EnviroColorMaterial
 Inheritedsmooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
AbstractShader
 Inheritedvisible : Boolean
Indicates whether the material is visible
AbstractShader
 Inheritedwidth : Number
Returns the height of the bitmapData being used as the shader environment map.
EnviroShader
Protected Properties
 PropertyDefined by
 Inheritedini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
AbstractShader
Public Methods
 MethodDefined by
  
EnviroColorMaterial
(color:*, enviroMap:BitmapData, init:Object = null)
Creates a new EnviroColorMaterial object.
EnviroColorMaterial
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
AbstractShader
 Inherited
getFaceMaterialVO(faceVO:FaceVO, source:Object3D = null, view:View3D = null):FaceMaterialVO
AbstractShader
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
AbstractShader
 Inherited
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
AbstractShader
 Inherited
renderLayer(tri:DrawTriangle, layer:Sprite, level:int):int
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
 Inherited
updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
EnviroShader
Protected Methods
 MethodDefined by
 Inherited
clearFaces(source:Object3D, view:View3D):void
EnviroShader
 Inherited
getMapping(source:Mesh, face:Face):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
EnviroShader
 Inherited
Renders the shader to the specified face.
EnviroShader
Property detail
colorproperty
color:uint  [read-write]

Defines the color of the material.

Implementation
    public function get color():uint
    public function set color(value:uint):void
reflectivenessproperty 
reflectiveness:Number  [write-only]

Implementation
    public function set reflectiveness(value:Number):void
Constructor detail
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.
Init Parameters
Method detail
renderTriangle()method
public function renderTriangle(tri:DrawTriangle):void

Sends the material data coupled with data from the DrawTriangle primitive to the render session.

Parameters
tri:DrawTriangle
Wiki link
Click to go to the wiki page for 'away3d.materials.EnviroColorMaterial'

Code examples

Comments