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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 1.21 by greg, Mon Aug 5 09:02:42 1991 UTC vs.
Revision 1.22 by greg, Tue Aug 6 15:02:36 1991 UTC

# Line 19 | Line 19 | static char SCCSid[] = "$SunId$ LBL";
19  
20   #include  "random.h"
21  
22 < #define  MINSAMPLES     5               /* minimum number of pretest samples */
23 < #define  STESTMAX       30              /* maximum seeks per sample */
22 > #define  MINSAMPLES     16              /* minimum number of pretest samples */
23 > #define  STESTMAX       32              /* maximum seeks per sample */
24  
25  
26   double  getdisk();
# Line 287 | Line 287 | register int  sn;      /* target source number */
287          getplaneq(onorm, o);
288                                  /* set number of rays to sample */
289          if (source[sn].sflags & SDISTANT) {
290 <                n = (2./3.*PI*PI)*or2/(thescene.cusize*thescene.cusize)*
291 <                                vspretest + .5;
290 >                n = 4.*or2/(thescene.cusize*thescene.cusize)*vspretest + .5;
291                  infront = DOT(onorm, source[sn].sloc) > 0.;
292          } else {
293                  for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines