Factorize godray visibility test in its own function.