vo_opengl: fix HLG OOTF inverse

Got the "sign" of the second multiplication wrong.
This commit is contained in:
Niklas Haas 2017-08-03 13:36:26 +02:00
parent 5e1e7d32e8
commit 8f484567fc
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ void pass_inverse_ootf(struct gl_shader_cache *sc, enum mp_csp_light light, floa
{
case MP_CSP_LIGHT_SCENE_HLG:
GLSLF("color.rgb *= vec3(1.0/%f);\n", (1000 / MP_REF_WHITE) / pow(12, 1.2));
GLSL(color.rgb *= vec3(pow(dot(src_luma, color.rgb), 0.2/1.2));)
GLSL(color.rgb /= vec3(max(1e-6, pow(dot(src_luma, color.rgb), 0.2/1.2)));)
break;
case MP_CSP_LIGHT_SCENE_709_1886:
GLSL(color.rgb = pow(color.rgb, vec3(1.0/2.4));)