Computer Graphics, Python, Mathematics, Game Development, Game Design.
practically the same task as previously, we just need to change the ray origin and direction. First, we need to define a light. You can add this near the objects declaration: light = { 'position': np.array([5, 5, 5]) } To check if an object is shadowing the intersection point, we have to pass the