Engine: corrected alpha blender algorithm

This lessens precision loss and fixes occasional color value overflows.