csharp
public enum VfxSortModeThe order particles are drawn in.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A drawing decision rather than a simulation one, which is why it lives on the renderer. It also costs something — a key per particle and a sort — so the default is the one that costs nothing.
Fields and properties (3)
NoneWhatever order they are in. Correct for additive blending, where the result does not depend on the order, and the only sensible choice there.
ByDepthFurthest from the camera first, which is what alpha blending needs.
ByAgeOldest first, which keeps a trail layered consistently however the camera moves.
Used by (7)
- TypeRegistrationVixen.Rendering
- VfxGeometryBuilderVixen.Vfx
- VfxGpuSortVixen.Rendering
- VfxRendererVixen.Vfx
- VfxRendererRowVixen.Rendering
- VfxSortTestsVixen.Vfx.Gpu.Tests
- Vixen_Rendering_Vfx_VfxRendererRowSerializerVixen.Rendering