Function alpha_table_dxt5

Source
fn alpha_table_dxt5(alpha0: u8, alpha1: u8) -> [u8; 8]
Expand description

Constructs the DXT5 alpha lookup table from the two alpha entries if alpha0 > alpha1, constructs a table of [a0, a1, 6 linearly interpolated values from a0 to a1] if alpha0 <= alpha1, constructs a table of [a0, a1, 4 linearly interpolated values from a0 to a1, 0, 0xFF]