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



Public Properties
 PropertyDefined By
 InheritedcullFace : String
The culling mode.
Material3D
  currentPath : String
[static]
FLSLMaterial
 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
  semantics : Dictionary
[static]
FLSLMaterial
 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, byteCode:ByteArray = null, techniqueName:String = 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
  
getSamplerByName(name:String, index:int = 0):FLSLSampler
FLSLMaterial
 Inherited
upload(scene:Scene3D):void
Associates and link the material with the scene to be uploaded.
Material3D
 Inherited
validate(surf:Surface3D):Boolean
Validates that the surface is compatible with the material.
Material3D
Protected Methods
 MethodDefined By
 Inherited
context3DEvent(e:Event = null):void
Uploads the necesary data to the graphics card.
Material3D
Property Detail
currentPathproperty
public static var currentPath:String

programsproperty 
programs:Vector.<FLSLProgram>


Implementation
    public function get programs():Vector.<FLSLProgram>
    public function set programs(value:Vector.<FLSLProgram>):void
semanticsproperty 
public static var semantics:Dictionary

Constructor Detail
FLSLMaterial()Constructor
public function FLSLMaterial(name:String, byteCode:ByteArray = null, techniqueName:String = null)



Parameters
name:String
 
byteCode:ByteArray (default = null)
 
techniqueName:String (default = null)
Method Detail
getParamByName()method
public function getParamByName(name:String, index:int = 0):FLSLParam

Parameters

name:String
 
index:int (default = 0)

Returns
FLSLParam
getSamplerByName()method 
public function getSamplerByName(name:String, index:int = 0):FLSLSampler

Parameters

name:String
 
index:int (default = 0)

Returns
FLSLSampler