The light field is a vector function that describes the amount of light flowing in every direction through every point…