- Home /
Applying UV to plane mesh is pixel imperfect.
I have an image that is 136 pixels by 136 pixels, a tile is 17 pixels by 17 pixels. Therefore there are 8 by 8 tiles in the image. Therefore the uv offsets should be 1/8 = 0.125. The first tile I set its base X uv coordinate to 0 and the next tile base X uv coordinate to 0.125 and so on. However when I apply the texture tile to the mesh it is inaccurate in its pixels. Here are some images:
On the left of the image is the texture import and on the right is the script and an image of the problem. Also the material is created from the imported texture and the tiling of the material is set to x: 1 and y: 1 and the material uses the legacy-transparent-diffuse shader. If you have any ideas on the problem, please let me know, thank you.
1.png
(267.6 kB)
Comment