| 69 |
|
extern int (*trace)(); |
| 70 |
|
|
| 71 |
|
if (localhit(r, &thescene) || sourcehit(r)) |
| 72 |
< |
rayshade(r, r->ro->omod); |
| 72 |
> |
/* check for clipped object */ |
| 73 |
> |
if (r->clipset != NULL && inset(r->clipset, r->ro->omod)) |
| 74 |
> |
raytrans(r); |
| 75 |
> |
else |
| 76 |
> |
rayshade(r, r->ro->omod); |
| 77 |
|
|
| 78 |
|
if (trace != NULL) |
| 79 |
|
(*trace)(r); /* trace execution */ |
| 99 |
|
{ |
| 100 |
|
static int depth = 0; |
| 101 |
|
register OBJREC *m; |
| 98 |
– |
/* check for clipped surface */ |
| 99 |
– |
if (r->clipset != NULL && r->rot < FHUGE && |
| 100 |
– |
inset(r->clipset, mod)) { |
| 101 |
– |
raytrans(r); |
| 102 |
– |
return; |
| 103 |
– |
} |
| 102 |
|
/* check for infinite loop */ |
| 103 |
|
if (depth++ >= MAXLOOP) |
| 104 |
|
objerror(r->ro, USER, "possible modifier loop"); |