introducing a lot of new operators

This commit is contained in:
2025-07-06 15:03:51 +02:00
parent ec8786ab9b
commit 3a5b38bd70
3 changed files with 68 additions and 7 deletions

View File

@ -74,13 +74,7 @@ export function ShaderCanvas() {
// Handle animation
useEffect(() => {
if (shaderRef.current) {
const hasTime = shader.code.includes('t');
if (hasTime) {
shaderRef.current.startAnimation();
} else {
shaderRef.current.stopAnimation();
shaderRef.current.render(false);
}
shaderRef.current.startAnimation();
}
}, [shader.code]);