| # | Line 63 | Line 63 | o_sphere( /* compute intersection with sphere */ | |
|---|---|---|
| 63 | break; | |
| 64 | if (i >= nroots) | |
| 65 | return(0); /* no positive root */ | |
| 66 | < | |
| 67 | < | if (t >= r->rot) |
| 68 | < | return(0); /* other is closer */ |
| 66 | > | if (rayreject(so, r, t)) |
| 67 | > | return(0); /* previous hit better */ |
| 68 | ||
| 69 | r->ro = so; | |
| 70 | r->rot = t; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |