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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 1.9 by greg, Tue Jun 25 13:11:53 1991 UTC vs.
Revision 1.10 by greg, Tue Jun 25 13:29:22 1991 UTC

# Line 320 | Line 320 | register int  sn;      /* target source number */
320                  srcray(&sr, NULL, sn);
321                  rayvalue(&sr);
322                  if (bright(sr.rcol) <= FTINY) {
323 +                        if (nhit > 0) {
324   #ifdef DEBUG
325 <                        fprintf(stderr, "\tfound an occlusion\n");
325 >                                fprintf(stderr, "\tpartially occluded\n");
326   #endif
327 <                        return(f);      /* need to shadow test */
328 <                }
329 <                nhit++;
327 >                                return(f);      /* need to shadow test */
328 >                        }
329 >                } else
330 >                        nhit++;
331          }
332          if (nhit == 0) {
333   #ifdef DEBUG

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines