Computational holography using ray-sampling plane