regl
regl copied to clipboard
Tilemap example shows white lines at some tile borders
I tried to use the tilemap example at example/tile.js but on some positions, i can see white lines at some tile borders, as shown in capture :
Shows on both firefox and chromium.
I am missing something ?
I see it as well. Seems like it happens on tiles adjacent to those with a white background. I don't have a great answer, but you might need to either pad the tiles in the texture or adjust the math to ensure that the texture coordinate never sneaks outside the bounds of a given texture.
Thanks for reproducing this behavior and for the suggestions.