How to paint specific faces of a cube #1276
Unanswered
ThiagoFacchini
asked this question in
Q&A
Replies: 1 comment
-
the same, just inside a useLayoutEffect. although i doubt that will still work in threejs because they have removed geometry and face3. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi it's me again,
I had a look on the documentation to avoid stupid questions but I couldn't find a way to paint specific faces of a cube.
Can somebody help me with it?
In three I would do something like:
geometry.faces[i].color.setHex(Math.random() * 0xffffff);
Not sure how to do it using R3F.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions