NEW SHADERS : try to get ocean world position in a texture
Doesn't work yet. Idea:
- use ocean_position.glsl to read the heightmap of the waves by sampling with the grid
- write the heightmap in a texture (so u between 0 and 1)
- QC : sample the texture in ocean.glsl to compute P
Problem : can't fing how to read with the grid coordinates and write on texture coordinates.
UPD SHADER : include velocity and pingpong algorithm to update particles
NEW + UPD : ocean position + velocity and pingpong algo for particles
- As seen 2 commits earlier, the attempt to get the ocean position in a texture fails so far
- we updated particle update shader to be able to use the pingpong algorithm and add a velocity texture attached to our particles.