drawing sprite back to front

This commit is contained in:
Antoine
2021-05-20 15:52:20 +02:00
parent 7a79c19c98
commit 8506065de0
8 changed files with 31 additions and 9 deletions

View File

@ -9,5 +9,5 @@ uniform sampler2D texture1;
void main()
{
FragColor = texture(texture1, vec2(texCoord.y, -texCoord.x)) * color;
FragColor = texture(texture1, vec2(-texCoord.y, -texCoord.x)) * color;
}