Skip to content

Commit

Permalink
Fix GLES shader support after #9247 (#10727)
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero committed Dec 22, 2020
1 parent af22dd8 commit 03540e7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion client/shaders/nodes_shader/opengl_fragment.glsl
Expand Up @@ -16,7 +16,11 @@ varying vec3 vPosition;
// precision must be considered).
varying vec3 worldPosition;
varying lowp vec4 varColor;
centroid varying mediump vec2 varTexCoord;
#ifdef GL_ES
varying mediump vec2 varTexCoord;
#else
centroid varying vec2 varTexCoord;
#endif
varying vec3 eyeVec;

const float fogStart = FOG_START;
Expand Down
6 changes: 5 additions & 1 deletion client/shaders/nodes_shader/opengl_vertex.glsl
Expand Up @@ -19,7 +19,11 @@ varying lowp vec4 varColor;
// The centroid keyword ensures that after interpolation the texture coordinates
// lie within the same bounds when MSAA is en- and disabled.
// This fixes the stripes problem with nearest-neighbour textures and MSAA.
centroid varying mediump vec2 varTexCoord;
#ifdef GL_ES
varying mediump vec2 varTexCoord;
#else
centroid varying vec2 varTexCoord;
#endif
varying vec3 eyeVec;

// Color of the light emitted by the light sources.
Expand Down
6 changes: 5 additions & 1 deletion client/shaders/object_shader/opengl_fragment.glsl
Expand Up @@ -9,7 +9,11 @@ varying vec3 vNormal;
varying vec3 vPosition;
varying vec3 worldPosition;
varying lowp vec4 varColor;
centroid varying mediump vec2 varTexCoord;
#ifdef GL_ES
varying mediump vec2 varTexCoord;
#else
centroid varying vec2 varTexCoord;
#endif

varying vec3 eyeVec;
varying float vIDiff;
Expand Down
6 changes: 5 additions & 1 deletion client/shaders/object_shader/opengl_vertex.glsl
Expand Up @@ -7,7 +7,11 @@ varying vec3 vNormal;
varying vec3 vPosition;
varying vec3 worldPosition;
varying lowp vec4 varColor;
centroid varying mediump vec2 varTexCoord;
#ifdef GL_ES
varying mediump vec2 varTexCoord;
#else
centroid varying vec2 varTexCoord;
#endif

varying vec3 eyeVec;
varying float vIDiff;
Expand Down

0 comments on commit 03540e7

Please sign in to comment.