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

Comparing ray/src/rt/ambcomp.c (file contents):
Revision 2.17 by greg, Sat Jun 4 06:10:12 2005 UTC vs.
Revision 2.18 by greg, Mon Jun 6 19:14:28 2005 UTC

# Line 192 | Line 192 | doambient(                             /* compute ambient component */
192                          dp->r = 0.0;
193                          dp->n = 0;
194                          if (divsample(dp, &hemi, r) < 0) {
195 <                                if (div != NULL) dp++;
195 >                                if (div == NULL) continue;
196 >                                dp++;
197                                  hemi.ns = 0;    /* incomplete sampling */
198                                  pg = dg = NULL;
199                                  continue;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines