|
Waterflow
Visualize water in terrain
|
Calculates normals from a height map. 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 power of 2. | |
| layout (std430, binding=0) readonly buffer height0 | |
| < Position of vertices to be written, y will be set to lower values if a WATER height is to be modeled and the WATER is under the surface. | |
| void | main (void) |
Variables | |
| uniform ivec2 | size |
| width, height. | |
Calculates normals from a height map.
Definition in file normals.comp.
| layout | ( | std430 | , |
| binding | = 0 |
||
| ) |
< Position of vertices to be written, y will be set to lower values if a WATER height is to be modeled and the WATER is under the surface.
< Normals to be written.
Definition at line 8 of file normals.comp.
| void main | ( | void | ) |
< x,y globalid i.e. the thread location.
Definition at line 20 of file normals.comp.