UV Address Error

Dec 23, 2012 at 10:51 PM
Edited Dec 23, 2012 at 10:51 PM

Hi,

I came across this bug in my own engine, and I noticed that you have this error too.

When generating UV addresses, the code generates, for example, a bottom left corner of (0, w) and a bottom right corner of (w, w), where w is the width of a texture.  However, the problem arises when the texture in the next row is generated, and give a top left corner of (0, w) and a top right corner of (w, w).

This causes a sliver of another texture to be shown on the edges of the first texture when rendering.