For intersection programs the current ray gets transformed to object space.
But i realized that the ray direction gets re-normalized? So t-values calculated in the intersection program can not be applied to world space rays.
I need the correct t-values in the closest hit program, what is the best way to get them since calculating the hit point, transforming the hit point and recalc the t-value for world space seems alot work…
How does rtPotentialIntersection do this to check the wrong t-values against the given range?
Thank you it’s a great idea to calculate the coefficient. I did not think of this. Problem is i need the coefficient inside the intersection program. So i guess it would work like this instead?