regl icon indicating copy to clipboard operation
regl copied to clipboard

Tilemap example shows white lines at some tile borders

Open lespin opened this issue 3 years ago • 2 comments

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 :

capture

Shows on both firefox and chromium.

I am missing something ?

lespin avatar Feb 05 '21 14:02 lespin

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.

rreusser avatar Feb 05 '21 17:02 rreusser

Thanks for reproducing this behavior and for the suggestions.

lespin avatar Feb 09 '21 09:02 lespin