Point on Screen Space Grid

Hey!
I have created a water grid according to the screen space grid: http://jeremybouny.fr/en/articles/screen_space_grid/

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?

Cheers!

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