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 |
|
} |
146 |
|
r->ro = NULL; |
147 |
|
r->rox = NULL; |
148 |
|
r->rxt = r->rmt = r->rot = FHUGE; |
149 |
+ |
VCOPY(r->rop, r->rorg); |
150 |
|
r->pert[0] = r->pert[1] = r->pert[2] = 0.0; |
151 |
+ |
r->rflips = 0; |
152 |
|
r->uv[0] = r->uv[1] = 0.0; |
153 |
|
setcolor(r->pcol, 1.0, 1.0, 1.0); |
154 |
|
setcolor(r->mcol, 0.0, 0.0, 0.0); |
511 |
|
r->pert[0] = -r->pert[0]; |
512 |
|
r->pert[1] = -r->pert[1]; |
513 |
|
r->pert[2] = -r->pert[2]; |
514 |
+ |
r->rflips++; |
515 |
|
} |
516 |
|
|
517 |
|
|