lettier/3d-game-shaders-for-beginners

sRGB Formula incorrect

julhe opened this issue · 0 comments

julhe commented

Just want to point out that the formula for Linear sRGB to Gamma-Corrected sRGB is not pow(x, 2.2). This is a common miss conception, since the gamma curve/ sRGB EOTF has a linear toe point.

The actual formular is described here:
http://chilliant.blogspot.com/2012/08/srgb-approximations-for-hlsl.html
https://www.colour-science.org/posts/the-importance-of-terminology-and-srgb-uncertainty/
https://entropymine.com/imageworsener/srgbformula/