summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-04 16:58:08 +0100
committerGitHub <noreply@github.com>2019-03-04 16:58:08 +0100
commitb753223ac2c03b4d6d4ee62f51b651902fcca870 (patch)
treee2defbebcba83686d1a386bb01746d43b82a9b6c /drivers/gles3/shaders
parentab11496a92c64a9d6d1705b898b3432c91ef3368 (diff)
parentb804c491b785185ff1496c81c0dfadf2a9a15fbc (diff)
Merge pull request #26567 from clayjohn/pixel_snap_artifact
Fixed pixel snap precision artifact
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/canvas.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl
index 6c1806a657..0d1e7ee4a1 100644
--- a/drivers/gles3/shaders/canvas.glsl
+++ b/drivers/gles3/shaders/canvas.glsl
@@ -173,6 +173,9 @@ VERTEX_SHADER_CODE
#ifdef USE_PIXEL_SNAP
outvec.xy = floor(outvec + 0.5).xy;
+ // precision issue on some hardware creates artifacts within texture
+ // offset uv by a small amount to avoid
+ uv_interp += 1e-5;
#endif
#ifdef USE_SKELETON