CreateMesh mirror texture when shared vertex with other faces
Posted: Wed Mar 06, 2024 2:53 pm
Hello, Is there a way to correctly put textures on a mesh created with CreateMesh()?
Let me explain, when you create a mesh and share the vertices with other faces, the faces are rotated or mirrored.
face1(v1,v2,v5,v4)
face2(v2,v3,v6,v5)
Here face1 and face2 share v2 and v5, in face2 the texture is the mirror of face1.
How can I avoid this?
If is using material, some body can put an example, please.
Thanks for help!
Let me explain, when you create a mesh and share the vertices with other faces, the faces are rotated or mirrored.
Code: Select all
__v1 __v2 __v3
__|-----|------|
__| face1 | face2 |
v4 |----- |------|v6
__| face3| face4 |
__|-----|------|
__v7 __v8 __v9face2(v2,v3,v6,v5)
Here face1 and face2 share v2 and v5, in face2 the texture is the mirror of face1.
How can I avoid this?
If is using material, some body can put an example, please.
Thanks for help!