Calculation for computer generated hologram using ray-sampling plane.