Waterflow
Visualize water in terrain
src/shaders/depthshader.frag File Reference

Fragment shader for depth map rendering. More...

Go to the source code of this file.

Functions

void main (void)

Variables

float depth
 Water depth at fragment.
uniform sampler2D height_texUnit
 Terrain geometry (normal and height) texture.
uniform float maxDepth
 Max depth variable (for tweaking depth grayscale saturation).
out vec4 out_Color
 Fragment (out) pixel value.
in vec3 out_ObjPos
 Fragment position.
in vec2 out_TexCoord
 Fragment texture coordinate.
uniform vec3 size
 Data size.
vec4 terrainDataUnderSurface
 Terrain geometry under fragment.

Detailed Description

Fragment shader for depth map rendering.

Definition in file depthshader.frag.

 All Classes Files Functions Variables Enumerations