fixed a bug in which the ray t param was not scaled by ray direction length