fixed calculation of nearX/Y/Z, have to get calculated based on ray.rdir and not ray.dir