|
Waterflow
Visualize water in terrain
|
Compute shader for updating the height. More...
Go to the source code of this file.
Functions | |
| layout (local_size_x=16, local_size_y=16) in | |
| This should be a nxn, where n is power of 2, however next step would result in 32x32, 1024 threads which is not always supported. | |
| layout (std430, binding=4) writeonly buffer height0 | |
| < height write buffer | |
| void | main () |
Variables | |
| uniform float | dt |
| simulation timestep | |
| uniform ivec2 | size |
| width height | |
Compute shader for updating the height.
Definition in file updateHeightShader.comp.
| layout | ( | std430 | , |
| binding | = 4 |
||
| ) |
< height write buffer
< Terrain height buffer
< VelocityY buffer
< VelocityX buffer
< height read buffer
Definition at line 13 of file updateHeightShader.comp.