adjustments

This commit is contained in:
2026-01-31 21:25:25 +01:00
parent 0a7dc2f25f
commit dedcec547d
13 changed files with 1660 additions and 2533 deletions

24
src/constants.ts Normal file
View File

@@ -0,0 +1,24 @@
// Configuration Constants
export const GRID_SIZE = 128;
export const NOISE_TEXTURE_WIDTH = 256;
export const NOISE_TEXTURE_HEIGHT = 256;
export const CANVAS_WIDTH = 800;
export const CANVAS_HEIGHT = 600;
export const FOV = 1.0;
export const NEAR_PLANE = 0.1;
export const FAR_PLANE = 1000.0;
export const CAMERA_DEFAULT_OFFSET = 1.2;
export const CAMERA_DEFAULT_ROT_X = 1.1;
export const CAMERA_DEFAULT_ROT_Y = 0;
export const MOUSE_SENSITIVITY = 0.001;
export const KEYBOARD_ROTATION_SPEED = 0.02;
export const KEYBOARD_ZOOM_SPEED = 0.05;
export const FPS_UPDATE_INTERVAL = 1000;
// Ocean shader constants
export const OCEAN_COLOR_R = 0.0;
export const OCEAN_COLOR_G = 0.4;
export const OCEAN_COLOR_B = 0.4;
export const SKY_COLOR_R = 1.0;
export const SKY_COLOR_G = 1.0;
export const SKY_COLOR_B = 1.0;