swapTexWrap from pixels coordinates of the source image

This commit is contained in:
Antoine
2021-05-20 20:04:16 +02:00
parent 4fc87e7b08
commit 29685f8e40
6 changed files with 29 additions and 11 deletions

View File

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