- fix HDR shader, again

This commit is contained in:
Rachael Alexanderson 2020-10-27 11:52:17 -04:00
parent 6770def806
commit 2312fb0322

View file

@ -31,7 +31,7 @@ vec4 Dither(vec4 c)
vec4 sRGBtoLinear(vec4 c) vec4 sRGBtoLinear(vec4 c)
{ {
return vec4(c.rgb / 12.92, mix(pow((c.rgb + 0.055) / 1.055, vec3(2.4)), step(c.rgb, vec3(0.04045))), c.a); return vec4(mix(c.rgb / 12.92, pow((c.rgb + 0.055) / 1.055, vec3(2.4)), step(c.rgb, vec3(0.04045))), c.a);
} }
vec4 ApplyHdrMode(vec4 c) vec4 ApplyHdrMode(vec4 c)