Computer Graphics, Python, Mathematics, Game Development, Game Design.
intersection point and the light. Fortunately, we already have a function to help us: nearest_intersected_object(). Indeed, we want to know if the ray that starts at the intersection point and goes towards the light is intersecting an object of the scene before crossing the light. This is