Waterflow
Visualize water in terrain
|
Compute shader to perform normalized convolution. More...
Go to the source code of this file.
Functions | |
layout (local_size_x=16, local_size_y=16) in | |
Size of calculation kernels on GPU, preferably multiple of 32. | |
layout (std430, binding=0) readonly buffer height0 | |
< Input heightbuffer | |
void | main () |
Variables | |
uniform ivec2 | size |
Width and height of the data. |
Compute shader to perform normalized convolution.
Calculates new values for all inputs that are negative. Positive values in the buffer will remain as they are. This is only for filling holes in the input.
Definition in file normConv.comp.
layout | ( | std430 | , |
binding | = 0 |
||
) |
< Input heightbuffer
< Counter of how many holes are left, when 0 algorithm is done
< Output heightbuffer, with less holes
Definition at line 11 of file normConv.comp.