Update CRT-HYLLIAN.glsl

- Small update to cut scanlines when height resolution is above threshold.
This commit is contained in:
Hyllian 2024-06-12 17:40:42 -03:00 committed by Connor McLaughlin
parent 7cf7a0a11f
commit edea81d151
1 changed files with 13 additions and 5 deletions

View File

@ -58,8 +58,8 @@ DefaultValue = 1.0
[OptionRangeFloat]
GUIName = COLOR BOOST
OptionName = COLOR_BOOST
MinValue = 0.0
MaxValue = 1.0
MinValue = 1.0
MaxValue = 3.0
StepAmount = 0.05
DefaultValue = 1.40
@ -111,6 +111,14 @@ MaxValue = 1.0
StepAmount = 0.01
DefaultValue = 0.58
[OptionRangeFloat]
GUIName = SCANLINES CUTOFF
OptionName = SCANLINES_CUTOFF
MinValue = 0.0
MaxValue = 1000.0
StepAmount = 1.0
DefaultValue = 390.0
[OptionRangeFloat]
GUIName = MONITOR SUBPIXELS LAYOUT
OptionName = MONITOR_SUBPIXELS
@ -490,9 +498,9 @@ void main()
d0 = exp(-d0*d0);
d1 = exp(-d1*d1);
vec3 color = (color0*d0+color1*d1);
vec3 color = (TextureSize.y <= SCANLINES_CUTOFF) ? (color0*d0+color1*d1) : GAMMA_IN(SampleLocation(vTexCoord).xyz);
color = GAMMA_OUT(color);
color = color_boost*GAMMA_OUT(color);
vec2 mask_coords =vTexCoord.xy * GetResolution().xy;
@ -500,5 +508,5 @@ void main()
color.rgb*=GAMMA_OUT(mask_weights(mask_coords, GetOption(MASK_INTENSITY), int(GetOption(PHOSPHOR_LAYOUT)), GetOption(MONITOR_SUBPIXELS)));
SetOutput(vec4(color_boost*color, 1.0));
SetOutput(vec4(color, 1.0));
}