- 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.
31 lines
641 B
JSON
31 lines
641 B
JSON
{
|
|
"name": "web-ocean",
|
|
"version": "0.0.1",
|
|
"description": "Simulating a ocean with typescript and webgl.",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"build:legacy": "tsc && browserify ./build/main.js | uglifyjs > ./build/app.js"
|
|
},
|
|
"keywords": [
|
|
"webgl",
|
|
"typescript",
|
|
"simulation",
|
|
"ocean",
|
|
"water",
|
|
"waves"
|
|
],
|
|
"author": "Julian Niessner",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"@webgpu/types": "^0.1.69",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^6.0.7"
|
|
},
|
|
"dependencies": {
|
|
"gl-matrix": "^3.4.4"
|
|
}
|
|
}
|