You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can simply paste in code from the ShaderPark web editor.
21
+
22
+
This setup uses a Vite plugin to generate the GLSL shaders at build time, so the shader-park-core library does not need to be bundled into your app. This has several benefits:
23
+
- Smaller bundle size. shader-park-core is heavy because it depends on large libraries like esprima.
24
+
- Faster initial render. Shaders are generated ahead of time.
25
+
- No need to use eval in the browser. This is more secure and follows best practices.
26
+
- Clear isolation between shaderpark code and the rest of your javascript code.
27
+
28
+
Find out more about [Shader Park](https://shaderpark.com/).
0 commit comments