ovwater/ovshaders/ovlod3.frag.cpp File Reference


Functions

vec3 GetNormal (float w, float A, vec2 D, float Q, float phi)
 Computes the normal for gerstner waves.
void main ()

Variables

uniform sampler2D texSky
uniform sampler2D texNoise
uniform float A
uniform float t
uniform float altitude
uniform float waterHorizon
uniform float dayTime
uniform vec2 k
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
varying vec4 fragPos
varying vec2 texCoord1
varying vec2 texCoord2
varying vec2 texCoord3
varying float ground_height
varying float antiAliasHorizon
varying float antiAliasAltitude
float antiAliasNormals

Function Documentation

vec3 GetNormal ( float  w,
float  A,
vec2  D,
float  Q,
float  phi 
)

Computes the normal for gerstner waves.

Parameters:
w the spatial frequency of the wave
A the amplitude of the wave
D the direction (i.e. wave vector) of the wave
Q the steepness of the wave
phi the temporal frequency of the wave
Returns:
the normal

void main (  ) 


Variable Documentation

uniform float A

uniform float altitude

varying float antiAliasAltitude

varying float antiAliasHorizon

float antiAliasNormals

uniform float dayTime

varying vec4 fragPos

varying float ground_height

uniform vec2 k

uniform vec2 k1

uniform vec2 k2

uniform vec2 k3

uniform vec2 k4

uniform vec2 k5

uniform vec2 k6

uniform float t

Time variable to use in animations

varying vec2 texCoord1

varying vec2 texCoord2

varying vec2 texCoord3

uniform sampler2D texNoise

uniform sampler2D texSky

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