class ParticleColorNode
package away3d.animators.nodes
extends ParticleNodeBase › AnimationNodeBase › NamedAssetBase
Available on all platforms
A particle animation node used to control the color variation of a particle over time.
Static variables
staticinlineread onlyCOLOR_END_COLORTRANSFORM:String = "ColorEndColorTransform"
Reference for color node properties on a single particle (when in local property mode).
Expects a ColorTransform object representing the end color transform applied to the particle.
staticinlineread onlyCOLOR_START_COLORTRANSFORM:String = "ColorStartColorTransform"
Reference for color node properties on a single particle (when in local property mode).
Expects a ColorTransform object representing the start color transform applied to the particle.
Constructor
new(mode:Int, usesMultiplier:Bool = true, usesOffset:Bool = true, usesCycle:Bool = false, usesPhase:Bool = false, ?startColor:ColorTransform, ?endColor:ColorTransform, cycleDuration:Float = 1, cyclePhase:Float = 0)
Creates a new ParticleColorNode
Parameters:
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
|---|---|
[optional] | usesMultiplier Defines whether the node uses multiplier data in the shader for its color transformations. Defaults to true. |
[optional] | usesOffset Defines whether the node uses offset data in the shader for its color transformations. Defaults to true. |
[optional] | usesCycle Defines whether the node uses the |
[optional] | usesPhase Defines whether the node uses the |
[optional] | startColor Defines the default start color transform of the node, when in global mode. |
[optional] | endColor Defines the default end color transform of the node, when in global mode. |
[optional] | cycleDuration Defines the duration of the animation in seconds, used as a period independent of particle duration when in global mode. Defaults to 1. |
[optional] | cyclePhase Defines the phase of the cycle in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0. |
Methods
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
@inheritDoc