Initial commit

This commit is contained in:
Rinuuri
2025-05-29 17:51:13 +03:00
parent 9c466b65fb
commit 7daa036e57
43 changed files with 996 additions and 0 deletions

7
src/scripts/common.js Normal file
View File

@@ -0,0 +1,7 @@
export async function loadShader(url) {
const response = await fetch(url);
if (!response.ok) {
throw new Error(`Failed to load shader: ${response.statusText}`);
}
return await response.text();
}