Hello, everyone. I am making a 2d digging game. At this time I am trying to make an effect, which darkens my vertices of the mesh, by the distance they are from empty mesh squares (photos below). The problem is that I get some not proper color mixing in the corner squares. The soft diagonal line, seen in the corner squares can be the result of the squares division by two triangles (this is due to manualy (by script) generated mesh. I use Sprites/Default shader, because it can support this vertice coloring. …Is there a way to solve this, to get a nice and smooth color mixing?
Notice the corner squares!
P.S. when I use different shader, which does not support this vertice coloring, console gives me a notification - “Shader wants tangents, but the mesh doesn’t have them”. I do not do any actions with tangents. Maybe I should do someting, to use other shaders? If you have some knowledge and expierence about this stuff, please, help me to solve this problem.
Thanks .