From 69c70dd319532f7860f211f4a527a902b0386e49 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 8 May 2021 20:18:29 +0200 Subject: Fix swapped vertex colors on GLES2 --- client/shaders/object_shader/opengl_vertex.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/shaders/object_shader') diff --git a/client/shaders/object_shader/opengl_vertex.glsl b/client/shaders/object_shader/opengl_vertex.glsl index b4a4d0aaa..f26224e82 100644 --- a/client/shaders/object_shader/opengl_vertex.glsl +++ b/client/shaders/object_shader/opengl_vertex.glsl @@ -49,5 +49,9 @@ void main(void) : directional_ambient(normalize(inVertexNormal)); #endif +#ifdef GL_ES + varColor = inVertexColor.bgra; +#else varColor = inVertexColor; +#endif } -- cgit v1.2.3