Fix inverting in antialias pass

This commit is contained in:
Theo Müller
2019-02-01 22:40:46 +01:00
parent 041bfdfd55
commit 3ff1097941
3 changed files with 31 additions and 27 deletions

View File

@@ -107,9 +107,11 @@ void render_side(in sampler1D tex, float idx) {
float s = get_line_height(tex, idx);
/* and finally set fragment color if we are in range */
#if INVERT > 0
float pos = float(screen.y) - gl_FragCoord.y;
#else
float pos = gl_FragCoord.y;
#endif
if (pos + 1.5 <= s) {
fragment = COLOR;
} else {