-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Maybe there is a problem in PL_COLOR_TRC_HLG "delinearization":
// OOTF^-1
GLSL("color.rgb *= 1.0 / "$"; \n"
"color.rgb *= 12.0 * max(1e-6, pow(dot("$", color.rgb), "$")); \n",
SH_FLOAT(csp_max), sh_luma_coeffs(sh, csp), SH_FLOAT((1 - y) / y));
if color.rgb == vec3(0) the result of pow(0, ) is undefined.
I see a garbage in results.
Also, it looks strange:
(1 - y) / y
Should it be simply (1-y)?
HedioKojima
Metadata
Metadata
Assignees
Labels
No labels