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
 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
getMapping(source:Mesh, face:Face):Matrix
EnviroShader
 Inherited
renderFace(face:Face, containerRect:Rectangle, parentFaceVO:FaceVO):FaceVO
Renders a bitmapData surface object for the speficied face.
AbstractShader
 Inherited
renderLayer(tri:DrawTriangle, layer:Sprite, level:int):void
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
clearFaceDictionary(source:Object3D, view:View3D):void
Clears face value objects when shader requires updating
EnviroShader
 Inherited
getLightingShape(layer:Sprite, light:LightPrimitive):Shape
Returns a shape object for use by light shaders
AbstractShader
 Inherited
getShape(layer:Sprite):Shape
Returns a shape object for use by environment shaders.
AbstractShader
 Inherited
renderShader(face:Face):void
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####
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 ####WIKI####

Code examples

Comments