New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sRGB info and articles #1014

bvssvni opened this Issue Dec 1, 2015 · 1 comment


None yet
2 participants

bvssvni commented Dec 1, 2015

  • Nice explanation, example included.

  • Detailed information about sRGB
  • Tells why sRGB and gamma 2.2 is similar, but not the same thing

  • Pictures
  • Confuses sRGB and gamma 2.2

  • Wikipedia article

  • More details

Thumb rule: If humans receive a picture from aliens using linear color space, it will appear darker on our screens than we are used to. This might make us believe the aliens have dark skin. (It is because our screens are not linearly calibrated and image editors, scanners, cameras etc. compensate for it by storing brighter color values).

Tip: The term "gamma corrected" is used about non-linear color space, which can be confusing. The linear color space is "mathematically correct". "Gamma corrected" means changing color values to compensate for the non-linear calibration of computer monitors.

sRGB can be enabled for rendering, which means the GPU uses hardware to convert colors back to linear space in the shaders. If you try to display a picture with sRGB enabled, telling it is RGB, then it will appear brighter. When you pass a uniform color to a shader with sRGB enabled, the color is treated as linear color space. This makes the color turn brighter than expected because the color codes are often copied from an image editor (which uses sRGB).

The colors people are used to are usually in sRGB, so when they do math with it is often wrong.

@bvssvni bvssvni added the information label Dec 1, 2015

@bvssvni bvssvni closed this Dec 1, 2015

@bvssvni bvssvni changed the title from sRGB articles to sRGB info articles Feb 23, 2016

@bvssvni bvssvni changed the title from sRGB info articles to sRGB info and articles Feb 25, 2016


This comment has been minimized.

Show comment
Hide comment

gaborigloi Apr 21, 2016


Relevant OpenGL wiki section about sRGB:


gaborigloi commented Apr 21, 2016

Relevant OpenGL wiki section about sRGB:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment