mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
Update crt-caligari.slang
Pixels will overlap each other below 0.5.
This commit is contained in:
parent
1fac9d0ddd
commit
5488db25f4
|
@ -36,8 +36,8 @@ layout(push_constant) uniform Push
|
|||
|
||||
// 0.5 = the spot stays inside the original 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_HEIGHT "CRTCaligari Spot Height" 0.65 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.5 1.5 0.05
|
||||
// Used to counteract the desaturation effect of weighting.
|
||||
#pragma parameter COLOR_BOOST "CRTCaligari Color Boost" 1.45 1.0 2.0 0.05
|
||||
// Constants used with gamma correction.
|
||||
|
@ -143,4 +143,4 @@ void main()
|
|||
color *= vec4( params.COLOR_BOOST );
|
||||
|
||||
FragColor = clamp( GAMMA_OUT(color), 0.0, 1.0 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue