| Package | away3d.animators.nodes |
| Class | public class ParticleColorNode |
| Inheritance | ParticleColorNode ParticleNodeBase AnimationNodeBase NamedAssetBase flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
ParticleColorNode(mode:uint, usesMultiplier:Boolean = true, usesOffset:Boolean = true, usesCycle:Boolean = false, usesPhase:Boolean = false, startColor:ColorTransform = null, endColor:ColorTransform = null, cycleDuration:Number = 1, cyclePhase:Number = 0)
Creates a new ParticleColorNode
| ParticleColorNode | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | dispose():void
Cleans up resources used by this asset. | AnimationNodeBase | |
![]() |
Returns the AGAL code of the particle animation node for use in the fragment shader. | ParticleNodeBase | |
![]() |
Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required. | ParticleNodeBase | |
[override]
Returns the AGAL code of the particle animation node for use in the vertex shader. | ParticleColorNode | ||
| ParticleColorNode | |||
![]() | getParticleNodeName(particleNodeClass:Object, particleNodeMode:uint):String [static]
| ParticleNodeBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| Constant | Defined By | ||
|---|---|---|---|
| COLOR_END_COLORTRANSFORM : String = ColorEndColorTransform [static]
Reference for color node properties on a single particle (when in local property mode). | ParticleColorNode | ||
| COLOR_START_COLORTRANSFORM : String = ColorStartColorTransform [static]
Reference for color node properties on a single particle (when in local property mode). | ParticleColorNode | ||
![]() | DEFAULT_NAMESPACE : String = default [static] | NamedAssetBase | |
| ParticleColorNode | () | Constructor |
public function ParticleColorNode(mode:uint, usesMultiplier:Boolean = true, usesOffset:Boolean = true, usesCycle:Boolean = false, usesPhase:Boolean = false, startColor:ColorTransform = null, endColor:ColorTransform = null, cycleDuration:Number = 1, cyclePhase:Number = 0)
Creates a new ParticleColorNode
mode:uint — Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
| |
usesMultiplier:Boolean (default = true) — usesMultiplier Defines whether the node uses multiplier data in the shader for its color transformations. Defaults to true.
| |
usesOffset:Boolean (default = true) — usesOffset Defines whether the node uses offset data in the shader for its color transformations. Defaults to true.
| |
usesCycle:Boolean (default = false) — usesCycle Defines whether the node uses the cycleDuration property in the shader to calculate the period of the animation independent of particle duration. Defaults to false.
| |
usesPhase:Boolean (default = false) — usesPhase Defines whether the node uses the cyclePhase property in the shader to calculate a starting offset to the cycle rotation of the particle. Defaults to false.
| |
startColor:ColorTransform (default = null) — startColor Defines the default start color transform of the node, when in global mode.
| |
endColor:ColorTransform (default = null) — endColor Defines the default end color transform of the node, when in global mode.
| |
cycleDuration:Number (default = 1) — cycleDuration Defines the duration of the animation in seconds, used as a period independent of particle duration when in global mode. Defaults to 1.
| |
cyclePhase:Number (default = 0) — cyclePhase Defines the phase of the cycle in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0.
|
| generatePropertyOfOneParticle | () | method |
override arcane function generatePropertyOfOneParticle(param:ParticleProperties):voidCalled internally by the particle animation set when assigning the set of static properties originally defined by the initParticleFunc of the set.
Parameters
param:ParticleProperties |
| getAGALVertexCode | () | method |
override public function getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):StringReturns the AGAL code of the particle animation node for use in the vertex shader.
Parameters
pass:MaterialPassBase | |
animationRegisterCache:AnimationRegisterCache |
String |
| getAnimationState | () | method |
public function getAnimationState(animator:IAnimator):ParticleColorState
Parameters
animator:IAnimator |
ParticleColorState |
| processAnimationSetting | () | method |
override arcane function processAnimationSetting(particleAnimationSet:ParticleAnimationSet):voidCalled internally by the particle animation set when determining the requirements of the particle animation node AGAL.
Parameters
particleAnimationSet:ParticleAnimationSet |
| COLOR_END_COLORTRANSFORM | Constant |
public static const COLOR_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.
| COLOR_START_COLORTRANSFORM | Constant |
public static const COLOR_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.