class ParticleNodeBase
package away3d.animators.nodes
extends AnimationNodeBase › NamedAssetBase
extended by ParticleAccelerationNode, ParticleBezierCurveNode, ParticleBillboardNode, ParticleColorNode, ParticleFollowNode, ParticleInitialColorNode, ParticleOrbitNode, ParticleOscillatorNode, ParticlePositionNode, ParticleRotateToHeadingNode, ParticleRotateToPositionNode, ParticleRotationalVelocityNode, ParticleScaleNode, ParticleSegmentedColorNode, ParticleSegmentedScaleNode, ParticleSpriteSheetNode, ParticleTimeNode, ParticleUVNode, ParticleVelocityNode
Available on all platforms
Provides an abstract base class for particle animation nodes.
Static methods
staticgetParticleNodeName(particleNodeClass:Dynamic, particleNodeMode:Int):String
- @param particleNodeClass - class of ParticleNodeBase child e.g ParticleBillboardNode, ParticleFollowNode...
Parameters:
particleNodeMode |
|
|---|
Returns:
particle node name
Constructor
new(name:String, mode:Int, dataLength:Int, priority:Int = 1)
Creates a new ParticleNodeBase object.
Parameters:
name | Defines the generic name of the particle animation node. |
|---|---|
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
dataLength | Defines the length of the data used by the node when in |
[optional] | priority the priority of the particle animation node, used to order the agal generated in a particle animation set. Defaults to 1. |
Variables
Methods
getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the fragment shader.
getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the vertex shader.