pub fn sprite_blend_reference(
mode: usize,
rgba: [f32; 4],
texel: [u8; 4],
dst: [u8; 3],
) -> [f32; 3]Expand description
CPU model of the table: result of drawing a texel texel (straight alpha) over the destination colour dst
with a sprite of colour rgba in mode, in 0..=255 units (not rounded). It follows the table, not the
shader: stage colour C / alpha A, then out = C * SRC + D * DEST with the mode’s factors.