ovwater/ovshaders/ovlod2.vert.cpp File Reference


Functions

vec2 GetTexCoord (vec2 k)
 Computes texture coordinates.
void main ()

Variables

uniform sampler2D texGround
uniform float t
uniform float A
uniform float altitude
uniform float waterHorizon
uniform vec2 k1
uniform vec2 k2
uniform vec2 k3
uniform vec2 k4
uniform vec2 k5
uniform vec2 k6
uniform vec4 wav1
uniform vec4 wav2
uniform vec4 wav3
uniform vec4 wav4
uniform vec4 wav5
uniform vec4 wav6
uniform mat4 rangeMatrix
uniform mat4 projectorModelViewProjectionMatrixInverse
varying vec4 Vertex
varying vec4 fragPos
varying float antiAliasHorizon
varying float antiAliasAltitude
varying vec2 texCoord1
varying vec2 texCoord2
varying vec2 texCoord3
vec4 pInt
vec4 color

Function Documentation

vec2 GetTexCoord ( vec2  k  ) 

Computes texture coordinates.

Calculates texture coordinates for the noise texture for waves moving with wave vector k.

Parameters:
The wave vector for the wave (i.e direction and speed of the wave)
Returns:
the calculated texture coordinates

void main (  ) 


Variable Documentation

uniform float A

uniform float altitude

varying float antiAliasAltitude

varying float antiAliasHorizon

vec4 color

varying vec4 fragPos

uniform vec2 k1

uniform vec2 k2

uniform vec2 k3

uniform vec2 k4

uniform vec2 k5

uniform vec2 k6

vec4 pInt

uniform mat4 projectorModelViewProjectionMatrixInverse

uniform mat4 rangeMatrix

uniform float t

Time variable to use in animations

varying vec2 texCoord1

varying vec2 texCoord2

varying vec2 texCoord3

uniform sampler2D texGround

varying vec4 Vertex

uniform float waterHorizon

Distance to the water horizon

uniform vec4 wav1

uniform vec4 wav2

uniform vec4 wav3

uniform vec4 wav4

uniform vec4 wav5

uniform vec4 wav6


Generated on Thu May 17 20:28:03 2007 for Ocean View by  doxygen 1.5.2