1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix swapped vertex colors on GLES2

This commit is contained in:
sfan5 2021-05-08 20:18:29 +02:00
parent 2443f1e235
commit 69c70dd319
5 changed files with 23 additions and 3 deletions

View file

@ -7,5 +7,9 @@ void main(void)
{
varTexCoord = inTexCoord0.st;
gl_Position = mWorldViewProj * inVertexPosition;
#ifdef GL_ES
varColor = inVertexColor.bgra;
#else
varColor = inVertexColor;
#endif
}