A simple Svelte wrapper for glslCanvas
I have not yet released it to npm, whoops.
Create a .frac
file in the static
folder. Then, add the <Shader/>
component with the file path as the file
prop.
Example:
<script lang="ts">
import { Shader } from 'gsls-cavnas-svelte'
</script>
<Shader file="shaders/example.frag" width={750} height={750}/>