In the NDC writeup you provided in this issue, when computing t_n for the final trick, d is assumed to a unit vector right? If d is not a unit vector, then I think t_n should be multiplied by norm(d) as in here. Can you please clarify if I've got something wrong?
The code is correct, my bad. Since the shifted origin is computed o' = o + t_n * d and t_n * d has the same effect for normalized or unnormalized d, it all works out.
Hi,
In the NDC writeup you provided in this issue, when computing
t_n
for the final trick,d
is assumed to a unit vector right? Ifd
is not a unit vector, then I thinkt_n
should be multiplied bynorm(
d
)
as in here. Can you please clarify if I've got something wrong?