„Számítógépes grafika házi feladat tutorial” változatai közötti eltérés

Rohamcsiga (vitalap | szerkesztései)
Rohamcsiga (vitalap | szerkesztései)
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);