fix for Tilemap rendering incorrectly when positioned exactly on .5 and other texture issues

This commit is contained in:
RandomGamingDev 2024-10-06 12:21:51 -04:00
parent db66bd35af
commit 91f02daadf

View file

@ -216,10 +216,10 @@ void main() {
if (canvas_data.use_pixel_snap) { if (canvas_data.use_pixel_snap) {
vertex = floor(vertex + 0.5); vertex = floor(vertex + 0.5);
// precision issue on some hardware creates artifacts within texture
// offset uv by a small amount to avoid
uv += 1e-5;
} }
// precision issue on some hardware creates artifacts within texture
// offset uv by a small amount to avoid
uv += 1e-5;
vertex_interp = vertex; vertex_interp = vertex;
uv_interp = uv; uv_interp = uv;