Waterflow
Visualize water in terrain
|
Compute shader for adding terrain height to indata. 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) readonly buffer height0 | |
< Height of water | |
void | main () |
Variables | |
uniform float | dt |
Simulation timestep. | |
uniform ivec2 | size |
width height |
Compute shader for adding terrain height to indata.
Definition in file addHeightShader.comp.
layout | ( | std430 | , |
binding | = 4 |
||
) |
< Height of water
< Write buffer for model out height
< Read buffer for height of terrain
Definition at line 9 of file addHeightShader.comp.