Packageflare.materials
Classpublic class FLSLMaterial
InheritanceFLSLMaterial Inheritance Material3D Inheritance flash.events.EventDispatcher
Subclasses NullMaterial, Shader3D, TextureMaterial



Public Properties
 PropertyDefined By
 InheritedcullFace : String
The culling mode.
Material3D
 InheriteddepthCompare : String = lessEqual
The test comparasion to be used when depthWrite is 'true'.
Material3D
 InheriteddepthWrite : Boolean = true
Gets or sets whatever the material writes into the z-buffer.
Material3D
 InheriteddestFactor : String
The factor with which to multiply the destination color.
Material3D
 Inheritedname : String
The name of the material.
Material3D
  programs : Vector.<FLSLProgram>
FLSLMaterial
 Inheritedscene : Scene3D
[read-only] Gets a reference to the scene that the material is associated.
Material3D
 InheritedsourceFactor : String
The factor with which to multiply the source color.
Material3D
 Inheritedtransparent : Boolean
Sets or gets if the material should use alpha blending.
Material3D
 InheritedtwoSided : Boolean
Sets or gets if the material should be drawn useing both sides of the surfaces.
Material3D
Public Methods
 MethodDefined By
  
FLSLMaterial(name:String, programs:Vector.<FLSLProgram> = null)
FLSLMaterial
 Inherited
Clones the material.
Material3D
 Inherited
dispose():void
Eliminates all the resources associated to the material.
Material3D
 Inherited
download():void
Downloads all the data uploaded to the graphics card.
Material3D
 Inherited
draw(pivot:Pivot3D, surf:Surface3D, firstIndex:int = 0, count:int = -1):void
Draw a mesh surface using the current material.
Material3D
  
getParamByName(name:String, index:int = 0):FLSLParam
FLSLMaterial
  
getTextueByName(name:String, index:int = 0):Texture3D
FLSLMaterial
  
setTextueByName(name:String, value:Texture3D, index:int = 0):void
FLSLMaterial
 Inherited
upload(scene:Scene3D):void
Uploads the necesary data to the graphics card.
Material3D
Property Detail
programsproperty
programs:Vector.<FLSLProgram>


Implementation
    public function get programs():Vector.<FLSLProgram>
    public function set programs(value:Vector.<FLSLProgram>):void
Constructor Detail
FLSLMaterial()Constructor
public function FLSLMaterial(name:String, programs:Vector.<FLSLProgram> = null)



Parameters
name:String
 
programs:Vector.<FLSLProgram> (default = null)
Method Detail
getParamByName()method
public function getParamByName(name:String, index:int = 0):FLSLParam

Parameters

name:String
 
index:int (default = 0)

Returns
FLSLParam
getTextueByName()method 
public function getTextueByName(name:String, index:int = 0):Texture3D

Parameters

name:String
 
index:int (default = 0)

Returns
Texture3D
setTextueByName()method 
public function setTextueByName(name:String, value:Texture3D, index:int = 0):void

Parameters

name:String
 
value:Texture3D
 
index:int (default = 0)