Gamma
Related terms: linear color space, sRGB, gamma correction
Image files and screens do not store brightness evenly. They use a curve called sRGB that spends more values on dark tones, where the eye is more sensitive.
Lighting math is only correct on real, linear light values. So color textures are decoded to linear when read, all shading happens in linear space, and the final frame is encoded back for the screen. Skipping this gives lighting that looks too dark and blends that look muddy.
- Further reading
- LearnOpenGL: gamma correction