From cc40afe27147f3f06d39572ed07d77fd7601db46 Mon Sep 17 00:00:00 2001 From: Sasha Date: Wed, 20 Mar 2024 19:48:27 +0000 Subject: [PATCH] make color-grading mids less overbearing --- shaders/dimensions/final.fsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/dimensions/final.fsh b/shaders/dimensions/final.fsh index 070ebbe..670bdea 100644 --- a/shaders/dimensions/final.fsh +++ b/shaders/dimensions/final.fsh @@ -88,9 +88,9 @@ vec3 toneCurve(vec3 color){ vec3 colorGrading(vec3 color) { float grade_luma = dot(color, vec3(1.0 / 3.0)); - float shadows_amount = saturate(-2.0 * grade_luma + 1.0); - float mids_amount = saturate(-abs(2.0 * grade_luma - 1.0) + 1.0); - float highlights_amount = saturate(2.0 * grade_luma - 1.0); + float shadows_amount = saturate(-6.0 * grade_luma + 2.75); + float mids_amount = saturate(-abs(6.0 * grade_luma - 3.0) + 1.25); + float highlights_amount = saturate(6.0 * grade_luma - 3.25); vec3 graded_shadows = color * SHADOWS_TARGET * SHADOWS_GRADE_MUL * 1.7320508076; vec3 graded_mids = color * MIDS_TARGET * MIDS_GRADE_MUL * 1.7320508076;