From 86d6da33d2f54f38bdb8481f0c94e2457d12ac98 Mon Sep 17 00:00:00 2001 From: Gulum Date: Wed, 4 Feb 2026 22:34:59 +0100 Subject: [PATCH] Add skybox --- index.html | 96 +++++++++++++++++++++++++++++++++++++-------------- src/Skybox.ts | 80 ++++++++++++++++++++++++++++++++++++++++++ src/main.ts | 33 ++++++++++++++++++ 3 files changed, 184 insertions(+), 25 deletions(-) create mode 100644 src/Skybox.ts diff --git a/index.html b/index.html index 0fb8b9c..63b4095 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,6 @@ + @@ -10,20 +11,20 @@ padding: 0; box-sizing: border-box; } - + body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow: hidden; background: #000; } - + #window { display: block; width: 100vw; height: 100vh; cursor: move; } - + #controls { position: absolute; top: 20px; @@ -37,23 +38,23 @@ backdrop-filter: blur(10px); transition: opacity 0.3s; } - + #controls.hidden { opacity: 0; pointer-events: none; } - + #controls h3 { margin: 0 0 10px 0; font-size: 16px; font-weight: 600; } - + #controls .control-group { margin-bottom: 8px; line-height: 1.6; } - + #controls .key { display: inline-block; background: rgba(255, 255, 255, 0.2); @@ -63,7 +64,7 @@ font-size: 12px; margin: 0 2px; } - + #toggle-controls { position: absolute; top: 20px; @@ -78,11 +79,11 @@ backdrop-filter: blur(10px); transition: background 0.3s; } - + #toggle-controls:hover { background: rgba(0, 0, 0, 0.85); } - + #fps-counter { position: absolute; bottom: 20px; @@ -285,10 +286,51 @@ + - +

🌊 Ocean Controls

Camera Rotation:
- WASD or Arrow Keys + WASD or + Arrow Keys
Zoom:
- Q / E or + / - + Q / E or + / -
Mouse: Click and drag to rotate @@ -331,21 +377,21 @@ Toggle Help: H
- + - +
FPS: 0
- +