You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the different implementations of the ray_color function, the target vector is calculated by adding the random vector to rec.p. However, rec.p is subtracted on the following line. For example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the different implementations of the
ray_color
function, thetarget
vector is calculated by adding the random vector torec.p
. However,rec.p
is subtracted on the following line. For example:This seems excessive. Isn't the following code doing the same without
rec.p
?Beta Was this translation helpful? Give feedback.
All reactions