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.112 by greg, Mon Mar 7 17:52:14 2022 UTC vs.
Revision 2.116 by greg, Fri Jan 27 19:57:08 2023 UTC

# Line 22 | Line 22 | static const char      RCSid[] = "$Id$";
22   #define  OCTSCALE       1.0     /* ceil((valid rad.)/(cube size)) */
23   #endif
24  
25 extern char  *shm_boundary;     /* memory sharing boundary */
26
25   #ifndef  MAXASET
26   #define  MAXASET        4095    /* maximum number of elements in ambient set */
27   #endif
# Line 458 | Line 456 | sumambient(            /* get interpolated ambient value */
456                   */
457                  VSUB(ck0, r->rop, av->pos);
458                  d = DOT(ck0, uvw[2]);
459 <                if (d < -minarad*ambacc-.001)
459 >                if (d < -minarad*ambacc)
460                          continue;
461                  d /= av->rad[0];
462                  delta_t2 = d*d;
# Line 641 | Line 639 | initambfile(           /* initialize ambient file */
639                                  ambvwt, ambounce, ambacc);
640                  fprintf(ambfp, "-ad %d -as %d -ar %d ",
641                                  ambdiv, ambssamp, ambres);
642 +                fprintf(ambfp, "-dr %d -ds %g -dt %g -dc %g ", directrelay,
643 +                                srcsizerat, shadthresh, shadcert);
644 +                fprintf(ambfp, "-ss %g -st %g -lr %d -lw %g ", specjitter,
645 +                                specthresh, maxdepth, minweight);
646                  if (octname != NULL)
647                          fputs(octname, ambfp);
648                  fputc('\n', ambfp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines