1. An image processing apparatus that generates an image in a virtual space in which a virtual object is arranged using a ray tracing method, comprising: an arrangement unit configured to arrange an approximate virtual object which includes at least one virtual element and which has a shape obtained by approximating a shape of a real object in the virtual space; a determination unit configured to determine an intersection of a ray generated in accordance with the ray tracing method and the approximate virtual object; and a generation unit configured to generate, when it is determined that the ray successively intersected the approximate virtual object at least twice, an image corresponding to a first intersection in accordance with the ray emitted to the first intersection.