From 988892ea2a70e8733325d682f6319917ff0f3cd4 Mon Sep 17 00:00:00 2001 From: metallic77 <43163462+metallic77@users.noreply.github.com> Date: Mon, 25 Sep 2023 19:11:43 +0300 Subject: [PATCH] reduce moire to minimum --- crt/shaders/crt-geom-mini.slang | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crt/shaders/crt-geom-mini.slang b/crt/shaders/crt-geom-mini.slang index 7b8bd0a..8c9ffba 100644 --- a/crt/shaders/crt-geom-mini.slang +++ b/crt/shaders/crt-geom-mini.slang @@ -24,9 +24,9 @@ layout(push_constant) uniform Push // Parameter lines go here: #pragma parameter CURV "CRT-Geom Curvature" 1.0 0.0 1.0 1.0 -#pragma parameter SCAN "CRT-Geom Scanline Weight" 0.2 0.2 0.6 0.05 -#pragma parameter MASK "CRT-Geom Dotmask Strength" 0.2 0.0 1.0 0.05 -#pragma parameter LUM "CRT-Geom Luminance" 0.05 0.0 0.5 0.01 +#pragma parameter SCAN "CRT-Geom Scanline Weight" 0.25 0.2 0.6 0.05 +#pragma parameter MASK "CRT-Geom Dotmask Strength" 0.25 0.0 1.0 0.05 +#pragma parameter LUM "CRT-Geom Luminance" 0.1 0.0 0.5 0.01 #pragma parameter INTERL "CRT-Geom Interlacing Simulation" 1.0 0.0 1.0 1.0 #pragma parameter SAT "CRT-Geom Saturation" 1.1 0.0 2.0 0.01 #pragma parameter LANC "Filter profile: Accurate/Fast" 0.0 0.0 1.0 1.0 @@ -159,7 +159,6 @@ void main() res *= sqrt(scn*msk); float l = dot(vec3(0.29, 0.6, 0.11), res); - res *= mix(1.0, 1.2, l); res = mix(vec3(l), res, SAT); if (corn.y <= corn.x && CURV == 1.0 || corn.x < 0.0001 && CURV == 1.0 ) res = vec3(0.0);