Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 575fb073 authored by Sally Qi's avatar Sally Qi
Browse files

Fix shader calculation equations that causes SDR grayscale mess-up.

Bug: 219698906
Test: play YouTube videos with Focus Mode on
Change-Id: Ic1d3ef72778da4e69d33c11dc11872356b856a41
parent 0f24a7c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ void generateEOTF(ui::Dataspace dataspace, std::string& shader) {
            shader.append(R"(

                float EOTF_sRGB(float srgb) {
                    return srgb <= 0.08125 ? srgb / 4.50 : pow((srgb + 0.099) / 1.099, 0.45);
                    return srgb <= 0.08125 ? srgb / 4.50 : pow((srgb + 0.099) / 1.099, 1 / 0.45);
                }

                float3 EOTF_sRGB(float3 srgb) {