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 2.36 by greg, Tue Mar 4 19:02:22 2003 UTC vs.
Revision 2.39 by greg, Fri May 9 22:18:03 2003 UTC

# Line 101 | Line 101 | register RAY  *r;
101          r->rox = NULL;
102          r->rt = r->rot = FHUGE;
103          r->pert[0] = r->pert[1] = r->pert[2] = 0.0;
104 +        r->uv[0] = r->uv[1] = 0.0;
105          setcolor(r->pcol, 1.0, 1.0, 1.0);
106          setcolor(r->rcol, 0.0, 0.0, 0.0);
107   }
# Line 173 | Line 174 | int  mod;
174                  }
175                  ******/
176                                          /* hack for irradiance calculation */
177 <                if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS))) {
177 >                if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS)) &&
178 >                                (ofun[m->otype].flags & (T_M|T_X))) {
179                          if (irr_ignore(m->otype)) {
180   #if  MAXLOOP
181                                  depth--;
# Line 226 | Line 228 | register RAY  *r;
228   }
229  
230  
231 + void
232   raytexture(r, mod)                      /* get material modifiers */
233   RAY  *r;
234 < int  mod;
234 > OBJECT  mod;
235   {
236          register OBJREC  *m;
237   #if  MAXLOOP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines