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

Comparing ray/src/rt/ambcomp.c (file contents):
Revision 1.9 by greg, Thu Jul 11 16:39:00 1991 UTC vs.
Revision 1.10 by greg, Wed Jul 24 10:36:13 1991 UTC

# Line 235 | Line 235 | RAY  *r;
235   {
236          register int  i;
237                                          /* set number of divisions */
238 <        hp->nt = sqrt(ambdiv * r->rweight * 0.5) + 0.5;
239 <        hp->np = 2 * hp->nt;
238 >        hp->nt = sqrt(ambdiv * r->rweight / PI) + 0.5;
239 >        hp->np = PI * hp->nt;
240                                          /* make axes */
241          VCOPY(hp->uz, r->ron);
242          hp->uy[0] = hp->uy[1] = hp->uy[2] = 0.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines