Packageflare.materials
Classpublic class Shader3D
InheritanceShader3D Inheritance FLSLMaterial Inheritance Material3D Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedblendMode : int
[override]
FLSLMaterial
 InheritedbyteCode : ByteArray
Sets or gets the flsl byteCode associated with the material.
FLSLMaterial
 InheritedcullFace : String
The culling mode.
Material3D
 InheritedcurrentTextuesPath : String
[static] FLSL shaders can request textures to be loaded, they ussualy are placed in the same directory as the flsl compiled file.
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
  enableLights : Boolean
Sets or gets if the material is affected by scene lights.
Shader3D
  filters : Array
Shader3D
 Inheritedflags : uint
A 32bit flag to store different material properties.
Material3D
  globalFilters : Array
[static]
Shader3D
  libs : Array
[static]
Shader3D
 InheritedmaterialAttributes : uint = 0
A 32bit flag values which defines the vertex attributes needed to render this particula material.
Material3D
 Inheritedname : String
The name of the material.
Material3D
 Inheritedparams : Object
Contains a collection of flsl public declarations.
FLSLMaterial
  postLightFilters : Array
Shader3D
 Inheritedprograms : Vector.<FLSLProgram>
Get or sets a collection of FLSLProgram structures to be used by this material.
FLSLMaterial
 Inheritedscene : Scene3D
[read-only] Gets a reference to the scene that the material is associated.
Material3D
 Inheritedsemantics : Array
[static] Semantics are used to bind static data into specific flsl parameters.
FLSLMaterial
 Inheritedsource : String
Shader source code if available.
FLSLMaterial
 InheritedsourceFactor : String
The factor with which to multiply the source color.
Material3D
 InheritedtechniqueName : String
The name of the thecnique to use.
FLSLMaterial
  transform : FLSLFilter
Shader3D
 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
  
Shader3D(name:String, filters:Array = null, enableLights:Boolean = true, transform:FLSLFilter = null)
Shader3D
 Inherited
build():void
Compiles the material if it isn't already compiled.
FLSLMaterial
 Inherited
[override] Creates a clone of the FLSLMaterial.
FLSLMaterial
  
dispose():void
[override]
Shader3D
 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
 Inherited
drawQuad(x:Number = 0, y:Number = 0, width:Number = -1, height:Number = -1):void
FLSLMaterial
  
Shader3D
  
getFilterByClass(filterClass:Class):*
Shader3D
 Inherited
getTechnique(name:String = null):Vector.<FLSLProgram>
FLSLMaterial
 Inherited
Retirms all technique names available in the current shader.
FLSLMaterial
 Inherited
getTextures(out:Vector.<Texture3D>):Vector.<Texture3D>
[override]
FLSLMaterial
 Inherited
rebuild():void
Forces to recompile the material.
FLSLMaterial
  
removeFilterByClass(filterClass:Class):Boolean
Shader3D
 Inherited
replaceTexture(source:Texture3D, replaceFor:Texture3D):void
[override]
FLSLMaterial
 Inherited
setTechnique(name:String = null):void
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
Public Constants
 ConstantDefined By
 InheritedBLEND_ADDITIVE : int = 1
[static]
Material3D
 InheritedBLEND_ALPHA_BLENDED : int = 2
[static]
Material3D
 InheritedBLEND_MULTIPLY : int = 3
[static]
Material3D
 InheritedBLEND_NONE : int = 0
[static]
Material3D
 InheritedBLEND_SCREEN : int = 4
[static]
Material3D
 InheritedFLAG_MASK : uint
[static]
Material3D
 InheritedFLAG_SKIN1 : uint
[static]
Material3D
 InheritedFLAG_SKIN2 : uint
[static]
Material3D
 InheritedFLAG_SKIN3 : uint
[static]
Material3D
 InheritedFLAG_SKIN4 : uint
[static]
Material3D
  VERTEX_NORMAL : FLSLFilter
[static]
Shader3D
  VERTEX_SKIN : FLSLFilter
[static]
Shader3D
Property Detail
enableLightsproperty
enableLights:Boolean

Sets or gets if the material is affected by scene lights.


Implementation
    public function get enableLights():Boolean
    public function set enableLights(value:Boolean):void
filtersproperty 
filters:Array


Implementation
    public function get filters():Array
    public function set filters(value:Array):void
globalFiltersproperty 
public static var globalFilters:Array

libsproperty 
public static var libs:Array

postLightFiltersproperty 
postLightFilters:Array


Implementation
    public function get postLightFilters():Array
    public function set postLightFilters(value:Array):void
transformproperty 
transform:FLSLFilter


Implementation
    public function get transform():FLSLFilter
    public function set transform(value:FLSLFilter):void
Constructor Detail
Shader3D()Constructor
public function Shader3D(name:String, filters:Array = null, enableLights:Boolean = true, transform:FLSLFilter = null)



Parameters
name:String
 
filters:Array (default = null)
 
enableLights:Boolean (default = true)
 
transform:FLSLFilter (default = null)
Method Detail
dispose()method
override public function dispose():void

duplicate()method 
public function duplicate():Shader3D

Returns
Shader3D
getFilterByClass()method 
public function getFilterByClass(filterClass:Class):*

Parameters

filterClass:Class

Returns
*
removeFilterByClass()method 
public function removeFilterByClass(filterClass:Class):Boolean

Parameters

filterClass:Class

Returns
Boolean
Constant Detail
VERTEX_NORMALConstant
public static const VERTEX_NORMAL:FLSLFilter

VERTEX_SKINConstant 
public static const VERTEX_SKIN:FLSLFilter