sRGB Formula incorrect

Author: julheCreated Jan 13, 2021Updated Jan 13, 2021

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/

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