Hi!
We have some weird artifacts appearing in our game…
We use mesh where the tiles is right next to each other and then we set the UV:s like this
var uv : Vector2;
var uvSize : Vector2;
uvSize = Vector2 (1.0 / colCount, 1.0 / rowCount);
uv = Vector2 ((uIndex+colNumber) * uvSize.x, (1.0 - uvSize.y) - (vIndex+rowNumber) * uvSize.y);
Heres what the artifacts look like:
It seems the UV:s are “spilling over” but if we try to change by a vera small amount the images of course get the wrong size…
Any suggestions on how to better calc the UV:s?