In vector calculation, optix treats divided by zero with inf perfectly. It gives Inf and -Inf.
But when I divide by zero for a float, I got nan.
How can I take advantage of Optix to treat divided by zero?
float t = x/y;
gives nan when y=0;
But I still get nan. That makes confused how
float3 t0 = (boxmin - ray.origin)/ray.direction;
in SDK example sample2 gives inf and -inf correctly?