LaBasX2
03-14-2007, 09:44 AM
Hello everybody,
I am using point sprites for a simple particle system. In the GLSL shader I set the point size so that particles can have different sizes. The problem is now that the size is fixed and doensn't take into account the distance from the viewer. How can I calculate the point size depending on the modelview/projection matrix?
Thanks in advance!
I am using point sprites for a simple particle system. In the GLSL shader I set the point size so that particles can have different sizes. The problem is now that the size is fixed and doensn't take into account the distance from the viewer. How can I calculate the point size depending on the modelview/projection matrix?
Thanks in advance!