Packagesandy.materials
Classpublic class ZShaderMaterial
InheritanceZShaderMaterial Inheritance Material

Displays a kind of Z shading of any object that this material is applied to



Public Properties
 PropertyDefined by
 Inheritedattributes : MaterialAttributes
The attributes of this material.
Material
  coef : Number
ZShaderMaterial
 Inheritedfilters : Array
The array of filters for this material.
Material
 Inheritedid : Number
The unique id of this material
Material
 InheritedlightingEnable : Boolean = false
Specify is the material can receive light and apply the lightAttributes if specified.
Material
  matrix : Matrix
ZShaderMaterial
 Inheritedmodified : Boolean
The modified state of this material.
Material
  p3x : Number
ZShaderMaterial
 Inheritedrepeat : Boolean
The repeat property (?).
Material
 Inheritedtype : MaterialType
The material type of this material.
Material
 InheriteduseVertexNormal : Boolean = false
Specify if the material use the vertex normal information Default value is set to false.
Material
Protected Properties
 PropertyDefined by
 Inheritedm_bModified : Boolean
Material
 Inheritedm_oType : MaterialType
Material
 Inherited_useLight : Boolean = false
Material
Public Methods
 MethodDefined by
  
ZShaderMaterial(p_nCoef:Number = 1, p_oAttr:MaterialAttributes = null)
ZShaderMaterial
 Inherited
init(f:Polygon):void
Not used in this version of Sandy.
Material
  
renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void
Renders this material on the face it dresses
ZShaderMaterial
Property detail
coefproperty
public var coef:Number
matrixproperty 
public var matrix:Matrix
p3xproperty 
public var p3x:Number
Constructor detail
ZShaderMaterial()constructor
public function ZShaderMaterial(p_nCoef:Number = 1, p_oAttr:MaterialAttributes = null)Parameters
p_nCoef:Number (default = 1)
 
p_oAttr:MaterialAttributes (default = null)
Method detail
renderPolygon()method
public override function renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void

Renders this material on the face it dresses

Parameters
p_oScene:Scene3D — The face to be rendered
 
p_oPolygon:Polygon — The container to draw on
 
p_mcContainer:Sprite