Waterflow
Visualize water in terrain
|
Geometry shader to draw a simple representation of the voxel grid. More...
Go to the source code of this file.
Functions | |
layout (points) in | |
We get points as input. | |
layout (triangle_strip, max_vertices=4) out | |
We output a triangle strip. | |
void | main () |
Variables | |
out vec3 | exNormal |
Normal of the output billboard vertice. | |
out vec4 | outPosition |
Position of the vertice. | |
out vec2 | texValue |
Texture coordinates for the output billboard vertice. | |
uniform mat4 | VTPMatrix |
Transformation matrix from View to Projection space. |
Geometry shader to draw a simple representation of the voxel grid.
Creates billboards that look at the camera from each point in the voxel grid
Definition in file simplevoxels.geom.