Uncertainty about gamma correction context for custom shader #972
nick87720z
started this conversation in
Development
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While writing shader for subpixel image filtering, I only just discovered, that it's one of those things, sensitive on gamma. Before I added gamma correction to my shader, it's result produced color fringes in many places. Previously I did not understand, how could these artifacts appear. So now I can tell why - because it must be done in the linear color space. Because after I applied the correction, artifacts disappeared and text started to look almost like from freetype (may be like in some older qt version, e.g. qt4).
However, it seems, that gamma correction affects more graphical operations, including image scaling and filtering at all.
For now I ended up in the confusion about what color space where to be used. At least in my setup - I have only laptop LCD without hardware knobs. There are two ways for display-wide correction, which seem to stack each on other if set both (thus should be never used simultaneously for same thing):
Section "Monitor" / Gamma
option in xorg.conf.It's unclear, if entire desktop is expected to be in processing (linear) color range or only software with special support. Monica help says, that what it helps for is making sure it's in gamma 2.2 color space. But I can't understand:
In case if first case takes place, this means, that picom has to expect all window content to be surely uncorrected, as well as make sure, that its composite output is uncorrected as well.
Beta Was this translation helpful? Give feedback.
All reactions