Packagealternativa.engine3d.materials
Classpublic class Material
InheritanceMaterial Inheritance Object
Subclasses EncodeDepthMaterial, FillMaterial, ParserMaterial, TextureMaterial

Base class for all materials. Material defines, in which way surface will be visualized.



Public Properties
 PropertyDefined By
  name : String
Name of the material
Material
Public Methods
 MethodDefined By
  
Material
  
Duplicates an instance of a Material.
Material
  
getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D.
Material
Protected Methods
 MethodDefined By
  
Duplicates basic properties.
Material
Property Detail
nameproperty
public var name:String

Name of the material

Constructor Detail
Material()Constructor
public function Material()



Method Detail
clone()method
public function clone():Material

Duplicates an instance of a Material.

Returns
Material — A new Material object that is identical to the original.
clonePropertiesFrom()method 
protected function clonePropertiesFrom(source:Material):void

Duplicates basic properties. Invoked byclone().

Parameters

source:Material — Source of properties to be copied from.

getResources()method 
public function getResources(resourceType:Class = null):Vector.<Resource>

Gather resources used by material for uploading into context3D.

Parameters

resourceType:Class (default = null) — Gather the resources given type only.

Returns
Vector.<Resource> — Vector consists of resources.

See also

flash.display.Stage3D