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

@@ -3,6 +3,7 @@
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"types": ["@webgpu/types"],
"sourceMap": true,
"outDir": "./build/",
"strict": true,
@@ -14,5 +15,5 @@
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "build"]
"exclude": ["node_modules", "dist", "build", "src/main_webgl.ts"]
}