Packageaway3d.materials
Classpublic class EnviroColorMaterial
InheritanceEnviroColorMaterial Inheritance EnviroShader Inheritance AbstractShader Inheritance LayerMaterial Inheritance ColorMaterial Inheritance WireColorMaterial Inheritance WireframeMaterial Inheritance Material Inheritance flash.events.EventDispatcher

Color material with environment shading.



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
Determines the alpha value of the material
WireColorMaterial
 Inheritedbitmap : BitmapData
[read-only] 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
[override] Defines the color of the material.
EnviroColorMaterial
 Inheriteddebug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
ColorMaterial
 Inheritedheight : Number
[read-only] Returns the width of the bitmapData being used as the shader environment map.
EnviroShader
 Inheritedid : int
[read-only] Unique identifier
Material
 Inheritedmode : String
Setting for possible mapping methods.
EnviroShader
  reflectiveness : Number
[override] Coefficient for the reflectiveness of the environment map.
EnviroColorMaterial
 Inheritedsmooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
AbstractShader
 Inheritedthickness : Number
Determines the thickness value of the wire
WireframeMaterial
 Inheritedvisible : Boolean
[override] [read-only] Indicates whether the material is visible
WireColorMaterial
 Inheritedwidth : Number
[read-only] Returns the height of the bitmapData being used as the shader environment map.
EnviroShader
 InheritedwireAlpha : Number
Determines the alpha value of the wire
WireframeMaterial
 InheritedwireColor : uint
24 bit color value representing the wire color
WireframeMaterial
Protected Properties
 PropertyDefined By
 Inherited_alpha : Number
WireColorMaterial
 Inherited_color : uint
WireColorMaterial
 Inherited_debug : Boolean
ColorMaterial
 Inherited_endIndex : uint
AbstractShader
 Inherited_generated : Boolean
AbstractShader
 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.
WireframeMaterial
 Inherited_screenIndices : Vector.<int>
AbstractShader
 Inherited_screenUVTs : Vector.<Number>
AbstractShader
 Inherited_screenVertices : Vector.<Number>
AbstractShader
 Inherited_startIndex : uint
AbstractShader
 Inherited_thickness : Number
WireframeMaterial
 Inherited_uvs : Vector.<UV>
AbstractShader
 Inherited_wireAlpha : Number
WireframeMaterial
 Inherited_wireColor : uint = 0x0
WireframeMaterial
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
Material
 Inherited
clone(material:Material = null):Material
[override] Duplicates the material properties to another material object.
ColorMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
Protected Methods
 MethodDefined By
 Inherited
calcMapping(priIndex:uint, mapping:Matrix):Matrix
[override] Calculates the mapping matrix required to draw the triangle texture to screen.
EnviroShader
 Inherited
calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>
[override]
EnviroShader
 Inherited
WireframeMaterial
 Inherited
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
AbstractShader
 Inherited
getUVData(priIndex:uint):Vector.<Number>
AbstractShader
 Inherited
renderShader(priIndex:uint):void
[override] Renders the shader to the specified face.
EnviroShader
 Inherited
updateFaces(source:Object3D, view:View3D):void
EnviroShader
Events
 Event Summary Defined By
 InheritedDispatched when the any visual aspect of the material changes.Material
Property Detail
colorproperty
color:uint[override]

Defines the color of the material.


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

Coefficient for the reflectiveness of the environment map.


Implementation
    public function get reflectiveness():Number
    public function set reflectiveness(value:Number):void
Constructor Detail
EnviroColorMaterial()Constructor
public function EnviroColorMaterial(color:*, enviroMap:BitmapData, init:Object = null)

Creates a new EnviroColorMaterial object.

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####