Packagealternativa.engine3d.materials
Classpublic class SurfaceMaterial
InheritanceSurfaceMaterial Inheritance Material
SubclassesDevMaterial, FillMaterial, TextureMaterial, WireMaterial

Base class for surface materials.



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

Surface material.

Implementation
    public function get surface():Surface
Constructor detail
SurfaceMaterial()constructor
public function SurfaceMaterial(alpha:Number = 1, blendMode:String)

Create an instance of class.

Parameters
alpha:Number (default = 1)material opacity
 
blendMode:Stringcolor blending mode
Method detail
clone()method
public override function clone():Material

Clone material.

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

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