mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix swapped vertex colors on GLES2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user