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:
@@ -20,6 +20,7 @@
|
||||
"author": "Julian Niessner",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@webgpu/types": "^0.1.69",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^6.0.7"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user