Fixed the CRT shader for OpenGL frontends (SDL and older Macs)
This commit is contained in:
parent
e12e03d9c2
commit
c29b5b5800
@ -55,7 +55,7 @@ STATIC vec4 scale(sampler2D image, vec2 position, vec2 input_resolution, vec2 ou
|
||||
right *= scanline_multiplier;
|
||||
|
||||
/* Vertical seperator for shadow masks */
|
||||
bool odd = (int)(position * input_resolution).x & 1;
|
||||
bool odd = bool(int((position * input_resolution).x) & 1);
|
||||
if (odd) {
|
||||
pos.y += 0.5;
|
||||
pos.y = fract(pos.y);
|
||||
|
Loading…
Reference in New Issue
Block a user