Open
Description
I tried to install and run the demo in a Next.js project, and it prompt this error:
TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
To Reproduce
Steps to reproduce the behavior:
- npm i shadertoy-react
- import ShadertoyReact from "shadertoy-react";
- Declare ```
const fragmentShader =void main(void) { vec2 uv = gl_FragCoord.xy/iResolution.xy; vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4)); gl_FragColor = vec4(col ,1.0); }
;
4. Include component inside render function `<ShadertoyReact fs={fragmentShader} />`.
**Expected behavior**
Same as demo.
**Desktop (please complete the following information):**
- MacOs Monterey
- Chrome
- Versión 107.0.5304.110 (Build oficial) (x86_64)
Metadata
Assignees
Labels
No labels