Lerp properly in the z direction