Make anti-aliasing work with invert

This commit is contained in:
Theo Müller
2019-02-01 20:19:15 +01:00
parent 8cbf7bc579
commit 041bfdfd55
2 changed files with 24 additions and 4 deletions

View File

@@ -107,11 +107,9 @@ 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 {