mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
reduce moire to minimum
This commit is contained in:
parent
9266fa24b6
commit
988892ea2a
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue