moved ray triangle intersection to ray