I think I fixed the phong bug. Ray now normalizes the direction again.