aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/object_shader/opengl_vertex.glsl
diff options
context:
space:
mode:
authorHybridDog <3192173+HybridDog@users.noreply.github.com>2020-12-04 20:16:12 +0100
committerGitHub <noreply@github.com>2020-12-04 20:16:12 +0100
commite73c5d45858b35dde782b23677495c6eda3f8253 (patch)
treee432acd4562cc1c026188e69d3b688fce6fdb9a7 /client/shaders/object_shader/opengl_vertex.glsl
parentecd4f45318e7e510ebe4ebe8420ea739122d2edf (diff)
downloadminetest-e73c5d45858b35dde782b23677495c6eda3f8253.tar.gz
minetest-e73c5d45858b35dde782b23677495c6eda3f8253.tar.bz2
minetest-e73c5d45858b35dde782b23677495c6eda3f8253.zip
Fix MSAA stripes (#9247)
This only works when shaders are enabled. The centroid varying avoids that the textures (which repeat themselves out of bounds) are sampled out of bounds in MSAA. If MSAA (called FSAA in minetest) is disabled, the centroid keyword does nothing.
Diffstat (limited to 'client/shaders/object_shader/opengl_vertex.glsl')
-rw-r--r--client/shaders/object_shader/opengl_vertex.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/shaders/object_shader/opengl_vertex.glsl b/client/shaders/object_shader/opengl_vertex.glsl
index e44984dc8..f31b842ee 100644
--- a/client/shaders/object_shader/opengl_vertex.glsl
+++ b/client/shaders/object_shader/opengl_vertex.glsl
@@ -7,7 +7,7 @@ varying vec3 vNormal;
varying vec3 vPosition;
varying vec3 worldPosition;
varying lowp vec4 varColor;
-varying mediump vec2 varTexCoord;
+centroid varying mediump vec2 varTexCoord;
varying vec3 eyeVec;
varying float vIDiff;