68 |
|
r->gecc = seccg; |
69 |
|
r->slights = NULL; |
70 |
|
} else { /* spawned ray */ |
71 |
< |
if (ro->rot >= FHUGE) { |
71 |
> |
if (ro->rot >= FHUGE*.99) { |
72 |
|
memset(r, 0, sizeof(RAY)); |
73 |
|
return(-1); /* illegal continuation */ |
74 |
|
} |
147 |
|
r->rox = NULL; |
148 |
|
r->rxt = r->rmt = r->rot = FHUGE; |
149 |
|
r->pert[0] = r->pert[1] = r->pert[2] = 0.0; |
150 |
+ |
r->rflips = 0; |
151 |
|
r->uv[0] = r->uv[1] = 0.0; |
152 |
|
setcolor(r->pcol, 1.0, 1.0, 1.0); |
153 |
|
setcolor(r->mcol, 0.0, 0.0, 0.0); |
230 |
|
int tst_irrad = do_irrad && !(r->crtype & ~(PRIMARY|TRANS)); |
231 |
|
OBJREC *m; |
232 |
|
|
233 |
< |
r->rxt = r->rmt = r->rot; /* preset effective ray length */ |
233 |
> |
r->rxt = r->rot; /* preset effective ray length */ |
234 |
|
for ( ; mod != OVOID; mod = m->omod) { |
235 |
|
m = objptr(mod); |
236 |
|
/****** unnecessary test since modifier() is always called |
510 |
|
r->pert[0] = -r->pert[0]; |
511 |
|
r->pert[1] = -r->pert[1]; |
512 |
|
r->pert[2] = -r->pert[2]; |
513 |
+ |
r->rflips++; |
514 |
|
} |
515 |
|
|
516 |
|
|