Where can I find a working example of a cube with each side as a unique image texture? #1053
-
Beta Was this translation helpful? Give feedback.
Answered by
donmccurdy
Aug 7, 2023
Replies: 1 comment
-
Hi @vinny-888! Your code looks very close to complete here. To put a different texture on each face you'll need a different primitive and material for each face. The easiest way to do that would be to duplicate ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
donmccurdy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @vinny-888! Your code looks very close to complete here. To put a different texture on each face you'll need a different primitive and material for each face. The easiest way to do that would be to duplicate (
.clone()
) the primitive, and replace theindices
value for each primitive for the face you want.