Use vertically flipped UV in shader

This commit is contained in:
jglrxavpok 2020-08-13 15:06:49 +02:00
parent b08c1d6898
commit 48d967b89f
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ uniform float paletteSize;
void main() {
vec2 uv = fragCoords;
uv.y = -uv.y;
vec3 fragmentColor = texture(frame, fragCoords).rgb;
vec3 fragmentColor = texture(frame, uv).rgb;
// render in map colors
int closest = 0;