Skip to content

Premultiplied alpha and sRGB #704

Answered by mikke89
C-Core asked this question in Q&A
Oct 21, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Oh, good question. Yeah, generally, for our own backends I figured that things look better when not doing gamma correct blending. Maybe it's just because web browsers do it this way, so that's what we're used to. By the way, here's an excellent stack overflow post comparing different methods for color interpolation. I would say both sRGB and linearized sRGB both have their quirks, I don't think there is a clear winner at least when it comes to that.

So this was part of the reason that I've simply assumed (at least for our backends) that we do everything directly in sRGB. In OpenGL in particular, it's quite simple to just disable the sRGB conversion completely:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@C-Core
Comment options

Answer selected by C-Core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants