rendernode, snapshot: Slightly expand color matrix docs
authorSergey Bugaev <bugaevc@gmail.com>
Tue, 15 Aug 2023 08:28:43 +0000 (11:28 +0300)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:23:23 +0000 (10:23 -0400)
commite069a8053f9ada2ba070e557307a7b1c3892ff51
treebbf36b3c24e60465b1b8cc6de7fb1b904a35ce0b
parent582d368653501e37f707fd82c9b2ce3bb978adc7
rendernode, snapshot: Slightly expand color matrix docs

Based on reverse engineering the color node and contrary to my
expectations, the matrix/offset is expressed in, and applied to,
unpremultiplied colors. The colors are being explicitly
unpremultiplied, transformed according to the matrix/offset, and
premultiplied back (see color_matrix.glsl). The matrix is getting
transposed.

Also, copy the same blurb to the corresponding GtkSnapshot function.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
gsk/gskrendernodeimpl.c
gtk/gtksnapshot.c