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

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 2.9 by greg, Thu Nov 18 09:43:04 1993 UTC vs.
Revision 2.10 by greg, Wed Jan 12 16:46:35 1994 UTC

# Line 268 | Line 268 | register RAY  *r;
268                  transdist = r->rot + sr.rt;
269          }
270          if (r->crtype & SHADOW)                 /* the rest is shadow */
271 <                return;
271 >                return(1);
272                                                  /* compute reflected ray */
273          setbrdfunc(&nd);
274          errno = 0;
# Line 308 | Line 308 | register RAY  *r;
308                                                  /* check distance */
309          if (transtest > bright(r->rcol))
310                  r->rt = transdist;
311 +
312 +        return(1);
313   }
314  
315  
# Line 321 | Line 323 | register RAY  *r;
323          double  dtmp;
324                                                  /* always a shadow */
325          if (r->crtype & SHADOW)
326 <                return;
326 >                return(1);
327                                                  /* check arguments */
328          if (m->oargs.nsargs < (hasdata(m->otype)?4:2) | m->oargs.nfargs <
329                          (m->otype==MAT_TFUNC|m->otype==MAT_TDATA?6:4))
# Line 381 | Line 383 | register RAY  *r;
383          }
384                                                  /* add direct component */
385          direct(r, dirbrdf, &nd);
386 +
387 +        return(1);
388   }
389  
390  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines