Fix raytracer not respecting ray direction