aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/selection_shader
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-05-08 20:18:29 +0200
committersfan5 <sfan5@live.de>2021-05-11 21:15:39 +0200
commit69c70dd319532f7860f211f4a527a902b0386e49 (patch)
tree7ddfab40bd2f5c0bf7e50572e494bc41bf65388c /client/shaders/selection_shader
parent2443f1e2351d641d82597525e937792cce15be1e (diff)
downloadminetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.gz
minetest-69c70dd319532f7860f211f4a527a902b0386e49.tar.bz2
minetest-69c70dd319532f7860f211f4a527a902b0386e49.zip
Fix swapped vertex colors on GLES2
Diffstat (limited to 'client/shaders/selection_shader')
-rw-r--r--client/shaders/selection_shader/opengl_vertex.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shaders/selection_shader/opengl_vertex.glsl b/client/shaders/selection_shader/opengl_vertex.glsl
index 9ca87a9cf..39dde3056 100644
--- a/client/shaders/selection_shader/opengl_vertex.glsl
+++ b/client/shaders/selection_shader/opengl_vertex.glsl
@@ -6,5 +6,9 @@ void main(void)
varTexCoord = inTexCoord0.st;
gl_Position = mWorldViewProj * inVertexPosition;
+#ifdef GL_ES
+ varColor = inVertexColor.bgra;
+#else
varColor = inVertexColor;
+#endif
}