Questions tagged [srgb]
The srgb tag has no summary.
11 questions
1 vote
1 answer
1k views
What is a correct approach to gamma correction in OpenGL?
I'm currently reading about the topic of gamma correction and am a bit confused about what should I, as a game developer, do about it. There seem to be a few options here: Don't do anything at all ...
4 votes
2 answers
4k views
Why is enabling GL_FRAMEBUFFER_SRGB making the colours brighter?
My understanding of gamma correction is as follows: We want to do colour math in linear space so we can lerp etc. between colour values and get the results we expect. But human eyes don't have a ...
-1 votes
1 answer
302 views
Fastest Software Gamma=2.2 for RGB?
With gamma=2.0 you can use that Carmack's inverse sqrt hack or a lookup table. Yet all standard graphic formats mandate the use of gamma=2.2, and SVGA framebuffer also requires it. Unfortunately, for ...
2 votes
0 answers
892 views
Linear color workflow with render to texture - Banding in alpha channel?
In OpenGL, I am using GL_SRGB8_ALPHA8 for the OpenGL internal texture format for my textures and render targets. This eliminated some banding I was seeing in dark ...
5 votes
4 answers
14k views
Optimized linear to sRGB GLSL
I'm currently using a simple implementation of linear to sRGB transform: ...
2 votes
1 answer
2k views
Why am I not getting an sRGB default framebuffer?
I'm trying to make my OpenGL Haskell program gamma correct by making appropriate use of sRGB framebuffers and textures, but I'm running into issues making the default framebuffer sRGB. Consider the ...