diff --git a/files/shaders/objects_fragment.glsl b/files/shaders/objects_fragment.glsl index 5a72b44b37..ed13226093 100644 --- a/files/shaders/objects_fragment.glsl +++ b/files/shaders/objects_fragment.glsl @@ -47,9 +47,9 @@ varying float depth; #define PER_PIXEL_LIGHTING (@normalMap || @forcePPL) #if !PER_PIXEL_LIGHTING -varying vec4 lighting; +centroid varying vec4 lighting; #else -varying vec4 passColor; +centroid varying vec4 passColor; #endif varying vec3 passViewPos; varying vec3 passNormal; diff --git a/files/shaders/objects_vertex.glsl b/files/shaders/objects_vertex.glsl index e140cd6ad3..4ed02b9c39 100644 --- a/files/shaders/objects_vertex.glsl +++ b/files/shaders/objects_vertex.glsl @@ -38,9 +38,9 @@ varying float depth; #define PER_PIXEL_LIGHTING (@normalMap || @forcePPL) #if !PER_PIXEL_LIGHTING -varying vec4 lighting; +centroid varying vec4 lighting; #else -varying vec4 passColor; +centroid varying vec4 passColor; #endif varying vec3 passViewPos; varying vec3 passNormal; diff --git a/files/shaders/terrain_fragment.glsl b/files/shaders/terrain_fragment.glsl index 134e838c08..ef6d7f226f 100644 --- a/files/shaders/terrain_fragment.glsl +++ b/files/shaders/terrain_fragment.glsl @@ -17,9 +17,9 @@ varying float depth; #define PER_PIXEL_LIGHTING (@normalMap || @forcePPL) #if !PER_PIXEL_LIGHTING -varying vec4 lighting; +centroid varying vec4 lighting; #else -varying vec4 passColor; +centroid varying vec4 passColor; #endif varying vec3 passViewPos; varying vec3 passNormal; diff --git a/files/shaders/terrain_vertex.glsl b/files/shaders/terrain_vertex.glsl index e2a180153a..9e7c4a1629 100644 --- a/files/shaders/terrain_vertex.glsl +++ b/files/shaders/terrain_vertex.glsl @@ -6,9 +6,9 @@ varying float depth; #define PER_PIXEL_LIGHTING (@normalMap || @forcePPL) #if !PER_PIXEL_LIGHTING -varying vec4 lighting; +centroid varying vec4 lighting; #else -varying vec4 passColor; +centroid varying vec4 passColor; #endif varying vec3 passViewPos; varying vec3 passNormal;