mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-22 01:29:18 +01:00
[BotW] Fix Clarity pack bug found by charmics
Should fix a greenish tone that would appear if you turn up the curves contrast too high.
This commit is contained in:
parent
72da6b62bb
commit
24785ee0e7
@ -1055,12 +1055,12 @@ vec3 ACESFilm(vec3 color) {
|
||||
|
||||
vec3 CurvesPass(vec3 inputColor) {
|
||||
vec3 colorInput = inputColor;
|
||||
float Contrast_blend = Contrast * 2.0; //I multiply by two to give it a strength closer to the other curves.
|
||||
vec3 x = colorInput.rgb; //if the curve should be applied to both Luma and Chroma
|
||||
x = x * (x * (1.5 - x) + 0.5); //horner form - fastest version
|
||||
vec3 color = x; //if the curve should be applied to both Luma and Chroma
|
||||
colorInput.rgb = mix(colorInput.rgb, color, Contrast_blend); //Blend by Contrast
|
||||
return colorInput;
|
||||
float Contrast_blend = Contrast * 1.5;
|
||||
vec3 x = colorInput.rgb;
|
||||
x = x - 0.5;
|
||||
x = ( x / (0.5 + abs(x)) ) + 0.5;
|
||||
vec3 color = x;
|
||||
colorInput.rgb = mix(colorInput.rgb, color, Contrast_blend);
|
||||
}
|
||||
|
||||
//TECHNICOLOR2
|
||||
|
Loading…
Reference in New Issue
Block a user