<shaderMaterial />
usage
#1569
-
Hello everyone 👋 Disclaimer: I'm new to Three.js, React Three Fiber, etc...
Problem description:I was trying to reproduce one of the example from this course, but couldn't. Maybe I missed something, but I Relevant code:Here is a sandbox with as little code as possible. With Here is the simplest and closest sandbox from the course. What I noticed:My Thank you for your help 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As @jrabramson suggested on discord (thanks 🙏), removing the mesh rotation makes it appear. It's because three.js If you don't want to remove or tweak the mesh rotation because for some reason you want both sides rendered, you can set |
Beta Was this translation helpful? Give feedback.
As @jrabramson suggested on discord (thanks 🙏), removing the mesh rotation makes it appear.
It's because three.js
side
prop default isTHREE.FrontSide
.If you don't want to remove or tweak the mesh rotation because for some reason you want both sides rendered, you can set
side
toTHREE.DoubleSide
.