--- ray/src/rt/ambient.c 2022/03/07 17:52:14 2.112 +++ ray/src/rt/ambient.c 2023/01/27 19:57:08 2.116 @@ -1,4 +1,4 @@ -static const char RCSid[] = "$Id: ambient.c,v 2.112 2022/03/07 17:52:14 greg Exp $"; +static const char RCSid[] = "$Id: ambient.c,v 2.116 2023/01/27 19:57:08 greg Exp $"; /* * ambient.c - routines dealing with ambient (inter-reflected) component. * @@ -22,8 +22,6 @@ static const char RCSid[] = "$Id: ambient.c,v 2.112 20 #define OCTSCALE 1.0 /* ceil((valid rad.)/(cube size)) */ #endif -extern char *shm_boundary; /* memory sharing boundary */ - #ifndef MAXASET #define MAXASET 4095 /* maximum number of elements in ambient set */ #endif @@ -458,7 +456,7 @@ sumambient( /* get interpolated ambient value */ */ VSUB(ck0, r->rop, av->pos); d = DOT(ck0, uvw[2]); - if (d < -minarad*ambacc-.001) + if (d < -minarad*ambacc) continue; d /= av->rad[0]; delta_t2 = d*d; @@ -641,6 +639,10 @@ initambfile( /* initialize ambient file */ ambvwt, ambounce, ambacc); fprintf(ambfp, "-ad %d -as %d -ar %d ", ambdiv, ambssamp, ambres); + fprintf(ambfp, "-dr %d -ds %g -dt %g -dc %g ", directrelay, + srcsizerat, shadthresh, shadcert); + fprintf(ambfp, "-ss %g -st %g -lr %d -lw %g ", specjitter, + specthresh, maxdepth, minweight); if (octname != NULL) fputs(octname, ambfp); fputc('\n', ambfp);