From 03540e7140fc5d54e7b8406415b53e708c7b0bea Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 22 Dec 2020 16:53:52 +0300 Subject: Fix GLES shader support after #9247 (#10727) --- client/shaders/object_shader/opengl_fragment.glsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/shaders/object_shader/opengl_fragment.glsl') diff --git a/client/shaders/object_shader/opengl_fragment.glsl b/client/shaders/object_shader/opengl_fragment.glsl index 12cc54ae7..9a81d8185 100644 --- a/client/shaders/object_shader/opengl_fragment.glsl +++ b/client/shaders/object_shader/opengl_fragment.glsl @@ -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; -- cgit v1.2.3