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.4 by greg, Sun May 7 17:50:51 1989 UTC vs.
Revision 1.5 by greg, Wed Jul 19 18:46:59 1989 UTC

# Line 68 | Line 68 | register RAY  *r;
68   {
69          extern int  (*trace)();
70  
71 <        if (localhit(r, &thescene))
72 <                if (r->clipset != NULL && inset(r->clipset, r->ro->omod))
73 <                        raytrans(r);            /* object is clipped */
74 <                else
75 <                        rayshade(r, r->ro->omod);
76 <        else if (sourcehit(r))
71 >        if (localhit(r, &thescene) || sourcehit(r))
72                  rayshade(r, r->ro->omod);
73  
74          if (trace != NULL)
# Line 100 | Line 95 | int  mod;
95   {
96          static int  depth = 0;
97          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 +        }
104                                          /* check for infinite loop */
105          if (depth++ >= MAXLOOP)
106                  objerror(r->ro, USER, "possible modifier loop");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines