Browse Source

Fix GLES shader support after #9247 (#10727)

pull/10742/head
Vitaliy 2 months ago
committed by GitHub
parent
commit
03540e7140
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 4 deletions
  1. +5
    -1
      client/shaders/nodes_shader/opengl_fragment.glsl
  2. +5
    -1
      client/shaders/nodes_shader/opengl_vertex.glsl
  3. +5
    -1
      client/shaders/object_shader/opengl_fragment.glsl
  4. +5
    -1
      client/shaders/object_shader/opengl_vertex.glsl

+ 5
- 1
client/shaders/nodes_shader/opengl_fragment.glsl View File

@@ -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;


+ 5
- 1
client/shaders/nodes_shader/opengl_vertex.glsl View File

@@ -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.


+ 5
- 1
client/shaders/object_shader/opengl_fragment.glsl View File

@@ -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;


+ 5
- 1
client/shaders/object_shader/opengl_vertex.glsl View File

@@ -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;


Loading…
Cancel
Save