Packagealternativa.engine3d.materials
Classpublic class Material
SubclassesSpriteMaterial, SurfaceMaterial

Base class for materials.



Public Properties
 PropertyDefined by
  alpha : Number
material opacity
Material
  blendMode : String
Color blending mode.
Material
Public Methods
 MethodDefined by
  
Material(alpha:Number, blendMode:String)
Create an instance of class.
Material
  
Clone material.
Material
Protected Methods
 MethodDefined by
  
markToChange():void
Marks a material as changed, sending a signal to the scene.
Material
Property detail
alphaproperty
alpha:Number  [read-write]

material opacity

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
blendModeproperty 
blendMode:String  [read-write]

Color blending mode.

Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
Constructor detail
Material()constructor
public function Material(alpha:Number, blendMode:String)

Create an instance of class.

Parameters
alpha:Numbermaterial opacity
 
blendMode:Stringcolor blending mode
Method detail
clone()method
public function clone():Material

Clone material.

Returns
Materiala clone of the material object
markToChange()method 
protected function markToChange():void

Marks a material as changed, sending a signal to the scene.