ParticleSorterDepth Class
Namespace: Stride.Particles.SortersAssembly: Stride.Particles.dll
Sorts the particles by ascending order of their Depth (position on the camera's Z axis)
Derived from ParticleSorterDepth:
public class ParticleSorterDepth : ParticleSorterCustom<Vector3>, IParticleSorter
| Name | Description | |
|---|---|---|
| Constructors | ||
| ParticleSorterDepth(ParticlePool) | ||
| Methods | ||
| FreeSortedList(ref ParticleList) | In case an array was used it must be freed back to the pool |
|
| GetSortedList(Vector3) | ||
Constructors
ParticleSorterDepth(ParticlePool)
public ParticleSorterDepth(ParticlePool pool)
Parameters
| Type | Name | Description |
|---|---|---|
| ParticlePool | pool |
Methods
FreeSortedList(ref ParticleList)
In case an array was used it must be freed back to the pool
public void FreeSortedList(ref ParticleList sortedList)
Parameters
| Type | Name | Description |
|---|---|---|
| ParticleList | sortedList | Reference to the ParticleList to be freed |
GetSortedList(Vector3)
public ParticleList GetSortedList(Vector3 depth)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | depth |
Returns
| Type | Description |
|---|---|
| ParticleList |