Add color space alpha notes to Color documentation#104410
Conversation
|
I have a question: doesn't the sRGB encoding ignore the alpha channel by nature? I don't heard of the difference of alpha between sRGB space and linear space and non-linear alpha encoding.
Vulkan VK_FORMAT_R8G8B8A8_SRGB doesn't use non-linear alpha, too. I doubt if non-linear alpha has any use cases. |
You are correct and this PR aims to explicitly state exactly what you described in your comment for those who are unaware of this. |
|
Since there is no other case about the alpha channel, why is it necessary to explicitly state it? |
allenwp
left a comment
There was a problem hiding this comment.
The alpha channel often does not exist in the concept of a [color] space (at least in the parts of colorimetry where nonlinear/linear sRGB are being discussed), so I believe it will be less confusing to use the term "linear encoding" than "linear space" when describing how the alpha channel is stored.
Both Aaron and I were uncertain about what encoding was common or expected for the alpha channel of color data, especially because this |
|
Since we're here, it might be also good to add something like this to the class description:
|
2f55761 to
142f10f
Compare
After thinking more about it, this text might make a problem with the ambiguity of
If this is ever untrue a documentation issue should be opened. Thoughts? (I can make this sort of change a separate PR if you'd prefer.) |
Because this somewhat goes beyond the intended scope of this PR, I've created a new PR #104666 that builds on top of this one, adding more information about colour encoding of RGB properties. These two PRs can be merged separately or I can squash mine with @aaronfranke as a coauthor. |
142f10f to
6d9f7b1
Compare
47d486f to
0624dc9
Compare
0624dc9 to
f651516
Compare
|
Thanks! |
I discussed color spaces and blending with @allenwp in person at GDC and he mentioned these things, which I think should be explicitly stated in the documentation.