ParticleSystemVertexStreams
All possible Particle System vertex shader inputs.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
[Flags]public enum ParticleSystemVertexStreams
Fields
Value | Description |
|---|---|
| All | A mask with all vertex streams enabled. |
| CenterAndVertexID | The center position of each particle, with the vertex ID of each particle, from 0-3, stored in the w component. |
| Color | The color of each particle. |
| Custom1 | The first stream of custom data, supplied from script. |
| Custom2 | The second stream of custom data, supplied from script. |
| Lifetime | Alive time as a 0-1 value in the X component, and Total Lifetime in the Y component. To get the current particle age, simply multiply X by Y. |
| None | A mask with no vertex streams enabled. |
| Normal | The normal of each particle. |
| Position | The world space position of each particle. |
| Random | 4 random numbers. The first 3 are deterministic and assigned once when each particle is born, but the 4th value will change during the lifetime of the particle. |
| Rotation | The rotation of each particle. |
| Size | The size of each particle. |
| Tangent | Tangent vectors for normal mapping. |
| UV | The texture coordinates of each particle. |
| UV2BlendAndFrame | With the TextureSheetAnimationModule enabled, this contains the UVs for the second texture frame, the blend factor for each particle, and the raw frame, allowing for blending of frames. |
| Velocity | The 3D velocity of each particle. |