--- ray/src/rt/ambient.c 2014/04/24 19:16:52 2.78 +++ ray/src/rt/ambient.c 2014/04/25 00:21:52 2.79 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ambient.c,v 2.78 2014/04/24 19:16:52 greg Exp $"; +static const char RCSid[] = "$Id: ambient.c,v 2.79 2014/04/25 00:21:52 greg Exp $"; #endif /* * ambient.c - routines dealing with ambient (inter-reflected) component. @@ -357,8 +357,10 @@ sumambient( /* get interpolated ambient value */ FVECT c0, double s ) -{ /* initial limit is ambacc radians */ - const double maxangle = (ambacc-PI/2.)*pow(r->rweight,0.13) + PI/2.; +{ /* initial limit is 5 degrees plus ambacc radians */ + const double minangle = 5.0 * PI/180.; + const double maxangle = (minangle+ambacc-PI/2.)*pow(r->rweight,0.13) + + PI/2.; double wsum = 0.0; FVECT ck0; int i, j;