ShaderMaterial: "Class constructors cannot be invoked without 'new'" #516
-
Hello, I am trying to create a custom shader with shaderMaterial, but cannot get it to run. Here is a minimal Sandbox https://codesandbox.io/s/drei-shader-material-9sk5d?file=/src/App.js The error I get:
Any idea what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
joshuaellis
Aug 12, 2021
Replies: 1 comment 2 replies
-
L40 should be |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
molp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
L40 should be
lineShaderMaterial
notLineShaderMaterial
.