Waterflow
Visualize water in terrain
src/shaders/terrainshader.vert File Reference

Vertex shader for model rendering. More...

Go to the source code of this file.

Functions

void main (void)

Variables

in vec3 in_Normal
 Vertex normal.
in vec3 in_Position
 Vertex position.
in vec2 in_TexCoord
 Vertex texture coordinates.
out vec3 out_Normal
 Fragment normal.
out vec3 out_ObjPos
 Fragment position.
out vec2 out_TexCoord
 Fragment texture coordinates.
uniform mat4 VTPMatrix
 View-to-projection matrix.
uniform mat4 WTVMatrix
 World-to-view matrix.

Detailed Description

Vertex shader for model rendering.

Used to render all height maps i.e. terrain, water and shallow water.

Definition in file terrainshader.vert.

 All Classes Files Functions Variables Enumerations