diff options
author | sfan5 <sfan5@live.de> | 2021-05-08 20:18:29 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-11 21:15:39 +0200 |
commit | 69c70dd319532f7860f211f4a527a902b0386e49 (patch) | |
tree | 7ddfab40bd2f5c0bf7e50572e494bc41bf65388c /client/shaders/default_shader | |
parent | 2443f1e2351d641d82597525e937792cce15be1e (diff) | |
download | minetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.gz minetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.bz2 minetest-69c70dd319532f7860f211f4a527a902b0386e49.zip |
Fix swapped vertex colors on GLES2
Diffstat (limited to 'client/shaders/default_shader')
-rw-r--r-- | client/shaders/default_shader/opengl_vertex.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shaders/default_shader/opengl_vertex.glsl b/client/shaders/default_shader/opengl_vertex.glsl index d95a3c2d3..a908ac953 100644 --- a/client/shaders/default_shader/opengl_vertex.glsl +++ b/client/shaders/default_shader/opengl_vertex.glsl @@ -3,5 +3,9 @@ varying lowp vec4 varColor; void main(void) { gl_Position = mWorldViewProj * inVertexPosition; +#ifdef GL_ES + varColor = inVertexColor.bgra; +#else varColor = inVertexColor; +#endif } |