mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-23 23:13:17 +02:00
Fixed the CRT shader for OpenGL frontends (SDL and older Macs)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user