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.17 by greg, Fri May 10 08:51:06 1991 UTC vs.
Revision 1.19 by greg, Fri Jun 14 10:34:26 1991 UTC

# Line 121 | Line 121 | int  mod;
121                                          /* check for infinite loop */
122          if (depth++ >= MAXLOOP)
123                  objerror(r->ro, USER, "possible modifier loop");
124 +        r->rt = r->rot;                 /* set effective ray length */
125          for ( ; mod != OVOID; mod = m->omod) {
126                  m = objptr(mod);
127                  /****** unnecessary test since modifier() is always called
# Line 136 | Line 137 | int  mod;
137                                  raytrans(r);
138                                  return;
139                          }
140 <                        if (m->otype != MAT_ILLUM)
140 >                        if (!islight(m->otype))
141                                  m = &Lamb;
142                  }
143                  (*ofun[m->otype].funp)(m, r);   /* execute function */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines