„Számítógépes grafika házi feladat tutorial” változatai közötti eltérés
| 958. sor: | 958. sor: | ||
} | } | ||
case Light::Point: { | case Light::Point: { | ||
// Lőjjünk egy sugarat a fényforrás felől a konkrét pont irányába | |||
Ray shadow_checker = {light.pos, (inter.pos - light.pos).normalize()}; | Ray shadow_checker = {light.pos, (inter.pos - light.pos).normalize()}; | ||
Intersection shadow_checker_int = scene.getClosestIntersection(shadow_checker); | Intersection shadow_checker_int = scene.getClosestIntersection(shadow_checker); | ||