Raymarcher Technical & APi Documentation
RM Volume Particle Tracker
Namespace: Raymarcher.Toolkit
The Volume Particle Tracker is a mono class that enables you to track particles of a specific particle system and represent them as 'voxels' in a specific tex3DVolumeBox.
This component is automatically initialized and disposed.
You can watch an official video documentation here.

All you need to do is assign a target volume box and a particle system with a maximum of 1024 particles.
Keep in mind that the more particles you set, the more performance and memory it consumes. Additionally, higher resolution also demands more performance and memory.




Properties & Fields
public ParticleSystem[] targetParticleSystems;
// The higher the number, the more performance and allocations it consumes
public int maxParticlesInTotal = 128;
public RMSdf_Tex3DVolumeBox targetVolumeBoxTex3D;

public bool updateEveryFrame;
public CommonVolumeResolution volumeResolution;
public float pointSize;
public float pointSmoothness01;

public int CurrentResolution { get; }
public int MaxParticlesPerEmitter { get; }
Methods
// Initialize the particle tracker with all the parameters
public void InitializeCanvas()
// Initialize virtual particles only
public void InitializeParticles()
// Change filtering from/to bilinear/point
public void SwitchFiltering()
public void ChangeFiltering(bool toBilinear)
// Dispatch the particle tracker manually
public void UpdateParticleTracker()
// Clear the current particle tracker canvas manually
public void ClearParticleTracker()