CSE168 Notes 2, intersections
Raytracing 1: Intersections different type of rays need different information, shadow rays intersection / no intersection. primary rays: point of intersection materials, normal, text coord .. etc Ray-Sphere Intersection Substitute: Simplify Substitute: quadratic equation for t Intersection point substitute t back to the ray equation. surface normal at point of intersection: Ray-Triangle Intersection Combine with…