mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-11-27 02:20:41 +00: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 New Issue
Block a user