Namespace for Shader Particle Engine.
All SPE-related code sits under this namespace.
Classes
Namespaces
Members
(static) distributions :Number
A map of supported distribution types used
by SPE.Emitter instances.
These distribution types can be applied to
an emitter globally, which will affect the
`position`, `velocity`, and `acceleration`
value calculations for an emitter, or they
can be applied on a per-property basis.
Type:
- Number
Properties:
Name | Type | Description |
---|---|---|
BOX |
Number | Values will be distributed within a box. |
SPHERE |
Number | Values will be distributed on a sphere. |
DISC |
Number | Values will be distributed on a 2d-disc shape. |
(static) valueOverLifetimeLength :Number
Set this value to however many 'steps' you
want value-over-lifetime properties to have.
It's adjustable to fix an interpolation problem:
Assuming you specify an opacity value as [0, 1, 0]
and the `valueOverLifetimeLength` is 4, then the
opacity value array will be reinterpolated to
be [0, 0.66, 0.66, 0].
This isn't ideal, as particles would never reach
full opacity.
NOTE:
This property affects the length of ALL
value-over-lifetime properties for ALL
emitters and ALL groups.
Only values >= 3 && <= 4 are allowed.
Type:
- Number