Skip to content

Where can I find a working example of a cube with each side as a unique image texture? #1053

Answered by donmccurdy
vinny-888 asked this question in Q&A
Discussion options

You must be logged in to vote

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 the indices value for each primitive for the face you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by donmccurdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants