Packageflare.materials
Classpublic class ParticleMaterial3D
InheritanceParticleMaterial3D Inheritance Shader3D Inheritance Material3D Inheritance flash.events.EventDispatcher

This is a helper material configured to use with particle emiters.



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
 InheritedenableLights : Boolean
Sets or gets if the material is affected by scene lights.
Shader3D
 Inheritedfilters : Array
Gets or sets an indexed Array of filters to use in the material.
Shader3D
 InheritedglobalFilters : Array
[static] Defines an array of filters to be included on the materials that will be created after setting the global filters property.
Shader3D
 Inheritedname : String
The name of the material.
Material3D
 Inheritedprogram : FLSLProgram3D
[read-only] Returns a shader program reference.
Shader3D
 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
 Inheritedtechnique : FLSLFilter
Sets ot get the current method used for the vertex transform.
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
 InheritedupdateAllInstances : Boolean = false
Sets or returns whatever the shader should force to update the material parameters for each shader instance separately.
Shader3D
Public Methods
 MethodDefined By
  
ParticleMaterial3D(name:String, filters:Array = null, enableLights:Boolean = false, technique:FLSLFilter = null)
ParticleMaterial3D
 Inherited
build():void
Force to recompile the material.
Shader3D
 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
 Inherited
upload(scene:Scene3D):void
Uploads the necesary data to the graphics card.
Material3D
Events
 Event Summary Defined By
 InheritedThis event is dispatched when material filters has been changed or the material is re compiled.Shader3D
Public Constants
 ConstantDefined By
 InheritedVERTEX_HORIZONTAL_PARTICLE : FLSLFilter
[static]
Shader3D
 InheritedVERTEX_NORMAL : FLSLFilter
[static]
Shader3D
 InheritedVERTEX_PARTICLE : FLSLFilter
[static]
Shader3D
 InheritedVERTEX_SKIN : FLSLFilter
[static]
Shader3D
 InheritedVERTEX_VERTICAL_PARTICLE : FLSLFilter
[static]
Shader3D
Constructor Detail
ParticleMaterial3D()Constructor
public function ParticleMaterial3D(name:String, filters:Array = null, enableLights:Boolean = false, technique:FLSLFilter = null)



Parameters
name:String
 
filters:Array (default = null)
 
enableLights:Boolean (default = false)
 
technique:FLSLFilter (default = null)