make color-grading mids less overbearing

This commit is contained in:
Sasha 2024-03-20 19:48:27 +00:00
parent 9f1b97b486
commit cc40afe271

View File

@ -88,9 +88,9 @@ vec3 toneCurve(vec3 color){
vec3 colorGrading(vec3 color) { vec3 colorGrading(vec3 color) {
float grade_luma = dot(color, vec3(1.0 / 3.0)); float grade_luma = dot(color, vec3(1.0 / 3.0));
float shadows_amount = saturate(-2.0 * grade_luma + 1.0); float shadows_amount = saturate(-6.0 * grade_luma + 2.75);
float mids_amount = saturate(-abs(2.0 * grade_luma - 1.0) + 1.0); float mids_amount = saturate(-abs(6.0 * grade_luma - 3.0) + 1.25);
float highlights_amount = saturate(2.0 * grade_luma - 1.0); float highlights_amount = saturate(6.0 * grade_luma - 3.25);
vec3 graded_shadows = color * SHADOWS_TARGET * SHADOWS_GRADE_MUL * 1.7320508076; vec3 graded_shadows = color * SHADOWS_TARGET * SHADOWS_GRADE_MUL * 1.7320508076;
vec3 graded_mids = color * MIDS_TARGET * MIDS_GRADE_MUL * 1.7320508076; vec3 graded_mids = color * MIDS_TARGET * MIDS_GRADE_MUL * 1.7320508076;