Use wide gamut color grading and gamut mapping (#4524)

* Use wide gamut color grading and gamut mapping

This change introduces a new API on ColorGrading to enable or disable gamut mapping at will. This feature is currently off by default and while useful and recommended, it isn't cheap and we need to figure out what we want our defaults to be especially on mobile targets.

Gamut mapping can be combined with luminance scaling to properly control hue skews.

* Small cleanup

* More precise Rec.2020 conversion
This commit is contained in:
Romain Guy
2021-08-20 15:40:45 -07:00
committed by GitHub
parent b30e4f9a4b
commit ab9d132964
11 changed files with 162 additions and 51 deletions
+1
View File
@@ -211,6 +211,7 @@ static void colorGradingUI(Settings& settings, float* rangePlot, float* curvePlo
ImGui::PopStyleColor();
ImGui::Checkbox("Luminance scaling", &colorGrading.luminanceScaling);
ImGui::Checkbox("Gamut mapping", &colorGrading.gamutMapping);
ImGui::SliderFloat("Exposure", &colorGrading.exposure, -10.0f, 10.0f);