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.40 by greg, Tue Jul 9 21:56:44 1996 UTC vs.
Revision 2.41 by greg, Wed Jul 10 13:33:56 1996 UTC

# Line 50 | Line 50 | static int  nunflshed = 0;     /* number of unflushed ambi
50   #endif
51   #endif
52   #ifndef SORT_INTVL
53 < #define SORT_INTVL      (SORT_THRESH<<4)
53 > #define SORT_INTVL      (SORT_THRESH<<1)
54   #endif
55   #ifndef MAX_SORT_INTVL
56 < #define MAX_SORT_INTVL  (SORT_INTVL<<8)
56 > #define MAX_SORT_INTVL  (SORT_INTVL<<6)
57   #endif
58  
59   static COLOR  avsum = BLKCOLOR;         /* computed ambient value sum */
# Line 403 | Line 403 | int  creat;
403          setbuf(ambfp, bmalloc(BUFSIZ+8));
404          if (creat) {                    /* new file */
405                  newheader("RADIANCE", ambfp);
406 <                fprintf(ambfp, "%s -av %g %g %g -ab %d -aa %g ",
406 >                fprintf(ambfp, "%s -av %g %g %g -aw %d -ab %d -aa %g ",
407                                  progname, colval(ambval,RED),
408                                  colval(ambval,GRN), colval(ambval,BLU),
409 <                                ambounce, ambacc);
409 >                                ambvwt, ambounce, ambacc);
410                  fprintf(ambfp, "-ad %d -as %d -ar %d %s\n",
411                                  ambdiv, ambssamp, ambres,
412                                  octname==NULL ? "" : octname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines