I am trying to run 100000 and more particles. I've been watching many tutorials and other examples that demonstrate the power of shaders and OpenCL.
In one example that I watched, particle's position was calculated based on the position of your mouse pointer(physical device that you hold with one hand and cursor on the screen). The position of each particle was stored as RGB. R being x, G y, and B, z. And passed to pixel shader.And then each color pixel was drawn as position of particle afterward.
However I felt absurd towards this approach.
- Isn't this approach or coding style rather to be avoided?
- Shoudn't I learn how to use OpenCL and use the power of GPU's multithreading to directly state and pass my intended code?