I am implementing particle system in which I want particles to rotate around each other i.e. its own axis along with translational motion outwards from the emitter.
I have outward motion of particles working but I am not able to figure out how to add rotational motion along with it.
here are the equations I am using for motion:
My geometry shader:
Code :vec3 dir= GetRandomDirectionFromTexture(); vec3 vel= normalize(dir); out.position=input.position + (vel * DeltaTimeInSec); out.velocity= input.velocity+ (Acceleration * DeltaTimeSec);