mvilledieu / shadertoy-react

6kB "Shadertoy" like react component letting you easily render your fragment shaders in your React web projects, without having to worry about implementing the WebGL part.
https://codesandbox.io/s/434qm4x4w0
MIT License
124 stars 12 forks source link

Pause functionality #9

Open sebpettersson opened 4 years ago

sebpettersson commented 4 years ago

It might be useful to be able to pause shader. An easy solution might be a boolean prop that if set to true makes an early return in drawScene().

mvilledieu commented 4 years ago

@sebpettersson True, I'll do that whenever I get some time to do so, otherwise feel free to make a PR :)