I need to create three dimensional objects from two dimensional pointlists (so the input for my example here is a triangle pointlist) and want to use meshes. I was able to create the mesh but there is one problem:
The triangles on the sides have weird lighting behaviour (e.g. at the top): The areas should look the same especially as it is partly the same triangle. But as you can see the top side has two different bright zones. Rotating the objects changes the lighting behaviour btw.
What did not work:
- Changing shader or any property of the material
- Trying other UV coordinates (although I think the given are correct)
- Disabling directional lighting (the transitions get softer…)
- Calling mesh.RecalculateNormals(), mesh.RecalculateTangents() and mesh.RecalculateBounds() are not doing the work
Maybe this could be interesting:
mesh.vertices
mesh.triangles
mesh.uv
I’m grateful for any help!