Accelerated shading algorithm