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:
parent
2443f1e235
commit
69c70dd319
5 changed files with 23 additions and 3 deletions
|
@ -7,5 +7,9 @@ void main(void)
|
|||
{
|
||||
varTexCoord = inTexCoord0.st;
|
||||
gl_Position = mWorldViewProj * inVertexPosition;
|
||||
#ifdef GL_ES
|
||||
varColor = inVertexColor.bgra;
|
||||
#else
|
||||
varColor = inVertexColor;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue