Packagede.nulldesign.nd3d.material
Classpublic class Material
SubclassesBitmapMaterial, LineMaterial, PixelMaterial, WireMaterial

Basic material for 3D objects. Materials can be interactive, that means you are able to click on a face that contains an interactive material. A Mouse3DEvent then is dispatched by the Renderer containing information about the clicked mesh / face
A material can have it's own renderer you can specifiy in the customRenderer property,. You need to extend TextureRenderer if you want to implement your own renderer



Public Properties
 PropertyDefined by
  additive : Boolean = false
Material
  alpha : Number
Material
  calculateLights : Boolean = true
Material
  color : uint
Material
  customRenderer : TextureRenderer
Material
  doubleSided : Boolean = false
Material
  isInteractive : Boolean = false
Material
  isSprite : Boolean
Material
  smoothed : Boolean
Material
  texture : BitmapData
Material
Protected Properties
 PropertyDefined by
  _alpha : Number = 1
Material
  _color : uint = 0xffffff
Material
  _texture : BitmapData = null
Material
Public Methods
 MethodDefined by
  
Material(color:uint, alpha:Number = 1, calculateLights:Boolean = false, doubleSided:Boolean = false, additive:Boolean = false)
Constructor of class Material
Material
  
Material
Property detail
additiveproperty
public var additive:Boolean = false
_alphaproperty 
protected var _alpha:Number = 1
alphaproperty 
alpha:Number  [read-write]Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
calculateLightsproperty 
public var calculateLights:Boolean = true
_colorproperty 
protected var _color:uint = 0xffffff
colorproperty 
color:uint  [read-write]Implementation
    public function get color():uint
    public function set color(value:uint):void
customRendererproperty 
public var customRenderer:TextureRenderer
doubleSidedproperty 
public var doubleSided:Boolean = false
isInteractiveproperty 
public var isInteractive:Boolean = false
isSpriteproperty 
public var isSprite:Boolean
smoothedproperty 
public var smoothed:Boolean
_textureproperty 
protected var _texture:BitmapData = null
textureproperty 
texture:BitmapData  [read-write]Implementation
    public function get texture():BitmapData
    public function set texture(value:BitmapData):void
Constructor detail
Material()constructor
public function Material(color:uint, alpha:Number = 1, calculateLights:Boolean = false, doubleSided:Boolean = false, additive:Boolean = false)

Constructor of class Material

Parameters
color:uint
 
alpha:Number (default = 1)
 
calculateLights:Boolean (default = false) — lights be calculated for this material
 
doubleSided:Boolean (default = false) — this material be drawn on backfaces as well
 
additive:Boolean (default = false) — additive blending for this material
Method detail
clone()method
public function clone():Material

Returns
Material