fix for Tilemap rendering incorrectly when positioned exactly on .5 and other texture issues
This commit is contained in:
parent
db66bd35af
commit
91f02daadf
1 changed files with 3 additions and 3 deletions
|
@ -216,10 +216,10 @@ void main() {
|
|||
|
||||
if (canvas_data.use_pixel_snap) {
|
||||
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;
|
||||
uv_interp = uv;
|
||||
|
|
Loading…
Reference in a new issue