From 91eb05f1366209769922bcf44b24d6524aef8735 Mon Sep 17 00:00:00 2001 From: metallic77 <43163462+metallic77@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:30:14 +0300 Subject: [PATCH] fix scanlines misalignment/excessive moire (#396) * integrate NTSC-colors * Integrate NTSC-colors * Integrate NTSC-colors, some fixes too * additions Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too * Update crt-consumer.slang * fix scanlines misalignment --- crt/shaders/crt-consumer.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crt/shaders/crt-consumer.slang b/crt/shaders/crt-consumer.slang index a4003c4..efe6cb8 100644 --- a/crt/shaders/crt-consumer.slang +++ b/crt/shaders/crt-consumer.slang @@ -542,7 +542,7 @@ void main() float lum = color.r * 0.3 + color.g * 0.6 + color.b * 0.1; - float f = center_dist.y+0.5; //fix excessive moire + float f = fract(fp.y -0.5); if (global.inter > 0.5 && tex_size.y > 400.0) color = color; else