mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
Fixed incorrect inverse gamma curve being applied - presumably the cores dont adhere to the output standard of the time? Dont know but this works.
This commit is contained in:
parent
1b38f425cc
commit
e83780fb52
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue