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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.6 by greg, Fri Jan 17 09:27:17 1992 UTC vs.
Revision 2.8 by greg, Wed Mar 4 16:52:10 1992 UTC

# Line 297 | Line 297 | char  *s;
297                          e *= atof(cp);
298          }
299          if (p != NULL) {                /* relative setting */
300 <                if (bright(p->v) <= FTINY) {
300 >                if (bright(p->v) < 1e-25) {
301                          error(COMMAND, "cannot normalize to zero");
302                          return;
303                  }
# Line 386 | Line 386 | register char  *s;
386          extern double  shadcert;
387          extern COLOR  ambval;
388          extern double  ambacc;
389        extern double  minarad;
389          extern int  ambres;
390          extern int  ambdiv;
391          extern int  ambssamp;
# Line 464 | Line 463 | register char  *s;
463                          break;
464                  case 'r':
465                          if (getparam(s+2, "ambient resolution", 'i', &ambres))
466 <                                minarad = ambres > 0 ?
468 <                                                thescene.cusize/ambres : 0.0;
466 >                                setambres(ambres);
467                          break;
468                  default:
469                          goto badparam;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines