Point on Screen Space Grid

I have created a water grid according to the screen space grid: Screen space projected grid with GLSL and WebGL - Jérémy BOUNY

Now I need to draw foam at an objects position, which on a normal grid I could simply use a vec2 with the objects world position from the program in the frag shader.
How do I need to manipulate a XY pos in the frag shader to make it work on a screen space grid?


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.