letsgoooo

This commit is contained in:
2024-06-17 18:56:01 +02:00
parent 2296981c35
commit 6a6b675d14
5 changed files with 30 additions and 76 deletions

View File

@@ -55,18 +55,27 @@
}
</script>
<script>
shaderWebBackground.shade({
shaders: {
image: {
uniforms: {
iTime: (gl, loc) => gl.uniform1f(loc, performance.now() /1000),
iResolution: (gl, loc, ctx) => gl.uniform2f(loc, ctx.width, ctx.height)
function shade() {
shaderWebBackground.shade({
shaders: {
image: {
uniforms: {
iTime: (gl, loc) => gl.uniform1f(loc, performance.now() /1000),
iResolution: (gl, loc, ctx) => gl.uniform2f(loc, ctx.width, ctx.height)
}
}
}
}
});
});
}
newShader = sessionStorage.getItem("customShader");
if (newShader != null) {
console.log(newShader);
document.getElementById("image").innerHTML = newShader;
}
shade()
</script>
</head>
<body>