While I was implementing several blending functions like the ‘over’-operator, I again was confronted with divisions by constants at range-boundaries. Like 0xFF for ‘normalizing’ unsigned char multiplications, and the equivalent 0xFFFF and 0xFFFFFFFF for unsigned short and unsigned long respectively. Most of us are familiar with Blinn’s approximation, which alone gave him a star in [...]