#include "globals.h"
Texture for the deck of the boat
Texture for the side of the boat
Texture for the top of the boat
GLfloat cameraDirection[4] |
Camera direction in world coordinates
GLfloat cameraPosition[4] |
Camera position in world coordinates
GLfloat cameraUpVector[4] |
Camera up-vector in world coordinates
float daytime = 0.25 |
Time of day [0 1] -> 00:00-24:00.
float dt |
Time elapsed since last frame to use in animations
GLfloat fovRatio |
The aspect ratio of the field of view (x/y)
GLfloat fovY |
The field-of-view angle in the y direction
Height texture for the ground
Mesh for the ground
Texture for the ground
Shader for the ground
Texture for the ground
Texture for the help menu
bool keyboardAxis = false |
Show axis
bool keyboardDrawBoat = false |
bool keyboardDrawSky = true |
bool keyboardDrawTerrain = true |
bool keyboardDrawWater = true |
int keyboardElevate = 0 |
Up: 1, down: -1, stop: 0
int keyboardForward = 0 |
Camera forward move: 1, stop: 0, backwards: -1
bool keyboardFPS = true |
Show time and FPS
bool keyboardHelp = false |
Show help menu
bool keyboardLight = false |
Show light direction
bool keyboardLook = false |
Camera look at frustum
int keyboardMoveSun = 0 |
Earlier: 1, Later: -1, stop: 0
int keyboardMoveWind = 0 |
Less wind: -1, More wind: 1, No change: 0
bool keyboardParameters = false |
Show parameters
int keyboardPitch = 0 |
Camera pitch down: -1, stop: 0, up: 1
int keyboardRoll = 0 |
Camera roll left: -1, stop: 0, right: 1
int keyboardStrafe = 0 |
Camera strafe left: -1, stop: 0, right: 1
int keyboardTurnWind = 0 |
CW: -1, CCW: 1, No change: 0
bool keyboardWind = false |
Show wind direction
int keyboardYaw = 0 |
Camera yaw left: -1, stop: 0, right: 1
int keyboardZoom = 0 |
zoom in: 1, zoom out: -1, don't zoom: 0
int lodRes = 3 |
Level of detail for grid
int lodVis = 3 |
Level of detail for visualisation shader
float moveSpeed |
Speed for movement of the camera
GLuint polygonMode = GL_FILL |
Variable for drawing wirefram or solid
Texture for the clouds
float skyHeight |
Help variable for skyShader
float skyOffset |
Help variable for skyShader
Texture for the sky
GLfloat sunAmbColor[4] = {0.4f, 0.4f, 0.3f} |
Ambient color of the sun
float sunAngle = 3.1415927f/2.0f |
Sun angle [0 pi]
GLfloat sunColor[4] |
Diffuse and specular color of the sun
GLfloat sunDirection[3] |
Direction of the sunlight in world coordinates
GLuint sunLightSource = GL_LIGHT0 |
Light source for the sun
GLfloat sunPosition[4] |
Position of the sun in world coordinates
float sunSpeed = 45.0f |
Turnspeed for the sun
float t |
Time variable to use in animations
float turnSpeed = 90.0f |
Angular velocity for camera turning in deg/s
float waterColor[3] = {0.00f, 0.20f, 0.50f} |
Color of the water
float waterHorizon = 1000.f |
Distance to the water horizon
float waveAmpFactor = 1.0 |
Controls the amplitude of the waves
float windDir = 0.0f |
Wind direction
float windMoveSpeed = 2.0f |
Speed for changing wind velocity
int windowHeight = 768 |
Height of the Glut window
int windowID = 0 |
ID to the Glut window
int windowWidth = 1024 |
Width of the Glut window
float windSpeed = 10.0f |
Wind speed
float windVelocity[2] = {1.0f,0.0f} |
Wind velocity
GLfloat zFar |
The distance from the camera to the far clipping plane
GLfloat zNear |
The distance from the camera to the near clipping plane
GLfloat zoomFactor |
The amount of zooming
float zoomSpeed = 1.0f |
Zoom speed for camera 1.0 means that full zoom in or out from initial zoom takes 1 second