Files
rinuuri.dev/src/scripts/common.js
2025-05-29 17:59:40 +03:00

7 lines
218 B
JavaScript

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();
}