Packageaway3d.materials
Classpublic class ColorMaterial
ImplementsIFogMaterial, ITriangleMaterial

Material for solid color drawing with face's border outlining

Public Properties
 PropertyDefined by
  alpha : Number
ColorMaterial
  color : uint
ColorMaterial
  visible : Boolean
[read-only]
ColorMaterial
Public Methods
 MethodDefined by
  
ColorMaterial
(color:* = null, init:Object = null)
ColorMaterial
  
ColorMaterial
  
renderFog(fog:DrawFog):void
ColorMaterial
  
ColorMaterial
Property detail
alphaproperty
alpha:Number  [read-write]Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
colorproperty 
public var color:uint
visibleproperty 
visible:Boolean  [read-only]Implementation
    public function get visible():Boolean
Constructor detail
ColorMaterial()constructor
public function ColorMaterial(color:* = null, init:Object = null)Parameters
color:* (default = null)
 
init:Object (default = null)
Init Parameters
Method detail
fogLayer()method
public function fogLayer():IFogMaterial

Returns
IFogMaterial
renderFog()method 
public function renderFog(fog:DrawFog):void Parameters
fog:DrawFog
renderTriangle()method 
public function renderTriangle(tri:DrawTriangle):void Parameters
tri:DrawTriangle
Wiki link
Click to go to the wiki page for 'away3d.materials.ColorMaterial'

Code examples

Comments