unai: Use 8.8 RGB triplet format for gouraud shading
authorPaul Cercueil <paul@crapouillou.net>
Tue, 31 Oct 2023 17:11:39 +0000 (18:11 +0100)
committernotaz <notasas@gmail.com>
Thu, 2 Nov 2023 16:08:35 +0000 (18:08 +0200)
Use a new 'gcol_t' type which fits in 64 bits, and encode each color
component into a 8.8 fixed-point format.

This boosts the precision of the gouraud shading algorithm, at almost
zero cost.

Fixes #320.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>

No differences found