How do I create a mesh with a different material for each polygon? #11005
Unanswered
H-A-M-G-E-R
asked this question in
Q&A
Replies: 1 comment
-
Mesh does not have material attached to it. It only contains vertices. So it is not possible to create a mesh even with one material. You probably want to just create different meshes for each polygon. Note you can instantiate them with the same root entity, so for example, transformations need to be applied only to top entity. Alternatively you can create a texture to map different colors to different sides. Like in this example. Or even create a shader which would generate colors. But the easiest is just to create different entities for different sides. |
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.
-
example: cube with a different color for each side
Beta Was this translation helpful? Give feedback.
All reactions