Update reference implementation to do pixel shading and perspective correct parameter interpolation.