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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.75 by greg, Sat Apr 19 19:20:47 2014 UTC vs.
Revision 2.76 by greg, Wed Apr 23 06:04:18 2014 UTC

# Line 461 | Line 461 | makeambient(           /* make a new ambient value for storage
461                                                  /* compute ambient */
462          i = doambient(acol, r, amb.weight, uvw, amb.rad, amb.gpos, amb.gdir);
463          scalecolor(acol, 1./AVGREFL);           /* undo assumed reflectance */
464 <        if (i <= 0)                             /* no Hessian => no storage */
464 >        if (i <= 0 || amb.rad[0] <= FTINY)      /* no Hessian or zero radius */
465                  return(i);
466                                                  /* store value */
467          VCOPY(amb.pos, r->rop);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines