sRGB Gamma Support
Author: tomspilmanCreated Sep 15, 2013Updated Sep 29, 2026
Labelsfeaturescope: apiscope: graphicsstatus: needs-design
We would like to see gamma correct rendering support added to MonoGame. Currently we do this entirely in the shaders... doing the correct conversion to linear space and back to gamma as appropriate. The problem is that this wastes shader instructions.
The better way to do this in DX11/GL is to create the textures and render targets using the _SRGB formats. In this mode the GPU will automatically convert to linear and back to gamma as needed entirely in hardware and cheaper than using shader instructions. It also allows the hardware to do gamma correct filtering.
To add this to MonoGame we would have to:
- Add the _SRGB formats to the PixelFormat enum.
- Fix the Texture/RenderTarget classes to create SRGB formats.
- Fix ContentManager.Load<> To Support Loading sRGB formats.
Thoughts?
Source: MonoGame/MonoGame