Help me solve this bug with my ray tracer
问题 I'm not going to post any code for this question because it would require way too much context, but I shall explain conceptually what I'm doing. I'm building a simple ray tracer that uses affine transformations. What I mean is that I'm intersecting all rays from camera coordinates with generic shapes. The shapes all have associated affine transformations, and the rays are first multiplied by the inverses of these transformations before intersecting with scene objects. So for example, say I