mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 17:47:34 +08:00
make color-grading mids less overbearing
This commit is contained in:
parent
9f1b97b486
commit
cc40afe271
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user