Hi guys.
I wrote a script, which manually generates a mesh using perlin noise, and then I use flat shading technique, where I make all vertices unique. I triple checked how I create uvs, triangles and vertices and assign white color to all of them.
After mesh is created, I call mesh.RecalculateNormals();
The problem can be observed on the video below.
Rotating the directional light causes smooth color change, that’s OK, that’s what I would expect, but when rotation reaches some value, some of the triangles go immediately to black without any colortransition.
What can be the problem? Or is that normal?
Video: https://vimeo.com/202081717