indigo-devel Fix the computation of shadow points (#22)

Clear the intersections vector before each intersectsRay() call so that intersections[0] subsequently corresponds to the j-th body.
Previously, only the dot product resulting from the first body intersecting the ray has been considered, ignoring all further intersections which have been appended to the intersections vector.

Co-authored-by: chris20623 <chris20623@users.noreply.github.com>

Michael Görner avatar Michael Görner

Push event #17 passed

  • Ran for
AMD64
no language set
Git

Sorry, we're having troubles fetching jobs. Please try again later.