From e83780fb5207b8ff4e920708ff47df49a4a7e702 Mon Sep 17 00:00:00 2001 From: MajorPainTheCactus Date: Sat, 16 Sep 2023 21:24:01 +0100 Subject: [PATCH] Fixed incorrect inverse gamma curve being applied - presumably the cores dont adhere to the output standard of the time? Dont know but this works. --- hdr/shaders/include/colour_grade.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdr/shaders/include/colour_grade.h b/hdr/shaders/include/colour_grade.h index 6b7fb85..b986a47 100644 --- a/hdr/shaders/include/colour_grade.h +++ b/hdr/shaders/include/colour_grade.h @@ -204,7 +204,7 @@ vec3 ColourGrade(const vec3 colour) const vec3 white_point = WhiteBalance(temperature[colour_system], colour); - const vec3 linear = r601r709ToLinear(white_point); //pow(white_point, vec3(HCRT_GAMMA_IN)); + const vec3 linear = pow(white_point, vec3(HCRT_GAMMA_IN)); // r601r709ToLinear(white_point); const vec3 xyz = phosphor_set == 0 ? linear * kStandardsColourGamut[colour_system] : linear * kPhosphorColourGamut[phosphor_set - 1];