feat: Implement WebGPU context manager and shaders for ocean rendering

- Added WebGPUContext class to manage WebGPU initialization and resource creation.
- Created main_webgl.ts for WebGL rendering setup and scene management.
- Introduced WGSL shaders for Perlin noise generation and ocean rendering.
- Implemented vertex and fragment shaders for ocean surface displacement and lighting effects.
- Enhanced camera controls and rendering logic for improved user experience.
This commit is contained in:
2026-02-06 21:12:49 +01:00
parent bfc3778977
commit 260c6e7bc0
12 changed files with 1951 additions and 584 deletions

View File

@@ -20,6 +20,7 @@
"author": "Julian Niessner",
"license": "ISC",
"devDependencies": {
"@webgpu/types": "^0.1.69",
"typescript": "^5.9.3",
"vite": "^6.0.7"
},