If we pre-compute 1/d_x and -o_x/d_x, we can find the closest intersection of a ray with an axis-aligned box with one standard multiply and one standard addition!
Please log in to leave a comment.
If we pre-compute 1/d_x and -o_x/d_x, we can find the closest intersection of a ray with an axis-aligned box with one standard multiply and one standard addition!