Improved visibility tests (shooting rays)