Update crt-caligari.slang

Pixels will overlap each other below 0.5.
This commit is contained in:
metallic77 2023-09-22 07:58:49 +03:00 committed by GitHub
parent 1fac9d0ddd
commit 5488db25f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,8 @@ layout(push_constant) uniform Push
// 0.5 = the spot stays inside the original pixel // 0.5 = the spot stays inside the original pixel
// 1.0 = the spot bleeds up to the center of next pixel // 1.0 = the spot bleeds up to the center of next pixel
#pragma parameter SPOT_WIDTH "CRTCaligari Spot Width" 0.9 0.1 1.5 0.05 #pragma parameter SPOT_WIDTH "CRTCaligari Spot Width" 0.9 0.5 1.5 0.05
#pragma parameter SPOT_HEIGHT "CRTCaligari Spot Height" 0.65 0.1 1.5 0.05 #pragma parameter SPOT_HEIGHT "CRTCaligari Spot Height" 0.65 0.5 1.5 0.05
// Used to counteract the desaturation effect of weighting. // Used to counteract the desaturation effect of weighting.
#pragma parameter COLOR_BOOST "CRTCaligari Color Boost" 1.45 1.0 2.0 0.05 #pragma parameter COLOR_BOOST "CRTCaligari Color Boost" 1.45 1.0 2.0 0.05
// Constants used with gamma correction. // Constants used with gamma correction.
@ -143,4 +143,4 @@ void main()
color *= vec4( params.COLOR_BOOST ); color *= vec4( params.COLOR_BOOST );
FragColor = clamp( GAMMA_OUT(color), 0.0, 1.0 ); FragColor = clamp( GAMMA_OUT(color), 0.0, 1.0 );
} }