ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/raytrace.c
(Generate patch)

Comparing ray/src/rt/raytrace.c (file contents):
Revision 1.6 by greg, Mon Oct 16 18:57:02 1989 UTC vs.
Revision 1.7 by greg, Wed Nov 29 14:35:25 1989 UTC

# Line 69 | Line 69 | register RAY  *r;
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 */
# Line 95 | Line 99 | int  mod;
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");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines