clutter/color-state-params: Fix bt709 snippet

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4230>
This commit is contained in:
Joan Torres 2025-01-23 17:02:47 +01:00 committed by Sebastian Wick
parent 1d88f82d0d
commit 593eb66b36

View File

@ -481,7 +481,7 @@ static const char bt709_eotf_source[] =
"{\n"
" bvec3 is_low = lessThan (color, vec3 (0.08124));\n"
" vec3 lo_part = color / 4.5;\n"
" vec3 hi_part = pow ((color + 0.099) / 1.099), 1.0 / 0.45);\n"
" vec3 hi_part = pow ((color + 0.099) / 1.099, vec3 (1.0 / 0.45));\n"
" return mix (hi_part, lo_part, is_low);\n"
"}\n"
"\n"
@ -498,7 +498,7 @@ static const char bt709_inv_eotf_source[] =
"{\n"
" bvec3 is_low = lessThan (color, vec3 (0.018));\n"
" vec3 lo_part = 4.5 * color;\n"
" vec3 hi_part = 1.099 * pow (color, 0.45) - 0.099;\n"
" vec3 hi_part = 1.099 * pow (color, vec3 (0.45)) - 0.099;\n"
" return mix (hi_part, lo_part, is_low);\n"
"}\n"
"\n"