- Home /
Question by
DmitriO · Feb 27, 2019 at 10:13 AM ·
textureatlasuv coordinates
Texture2D.PackTextures Uv problem
Making a tile map. Each tile is just a square with texture coordinates from 0 to 1. If i set just the texture, then everything is fine, but if i set the Atlas and shift uv (tmp.y = tmpRect.y + tmpRect.height * tmp.y; tmp.x =... where tmp - uv, tmpRect - rect returned Texture2D.PackTextures) i get the lines on the border of the tiles. How to fix?
gyhj3qxyhbq.jpg
(333.0 kB)
y4cyejdcuf4.jpg
(238.0 kB)
Comment