Is there a way to get particle coordinates to be integers instead of float values? I’m working on a particle system and I need to have it so that the particles are always at integer values to get them to render properly with the setup I’m using.
You can manipulate the array of particles using ParticleSystem.GetParticles and ParticleSystem.SetParticles. You could iterate over all the particles and use Mathf.Round to round all the position coordinates to whole numbers each frame. Although if your particles have low velocities they may just end up staying still.
A better solution would be to do this in a vertex shader using the round function:
http://http.developer.nvidia.com/Cg/round.html
That sounds like a far better solution. I’ll see if I can’t adapt that to what I’m using. Particles and shaders were never my strong suits, sadly.