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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.31 by greg, Sun Apr 5 15:47:02 2020 UTC vs.
Revision 2.32 by greg, Mon Apr 6 04:10:44 2020 UTC

# Line 37 | Line 37 | int  nproc = 1;                                /* number of processes */
37  
38   extern char  *formstr(int f);           /* string from format */
39   extern int  setrtoutput(void);          /* set output values */
40 +
41   int  inform = 'a';                      /* input format */
42   int  outform = 'a';                     /* output format */
43   char  *outvals = "v";                   /* output specification */
# Line 44 | Line 45 | char  *outvals = "v";                  /* output specification */
45   int  hresolu = 0;                       /* horizontal (scan) size */
46   int  vresolu = 0;                       /* vertical resolution */
47  
48 + int  castonly = 0;                      /* only doing ray-casting? */
49 +
50   int  imm_irrad = 0;                     /* compute immediate irradiance? */
51   int  lim_dist = 0;                      /* limit distance? */
52  
# Line 328 | Line 331 | main(int  argc, char  *argv[])
331                  fputformat(formstr(outform), stdout);
332                  putchar('\n');
333          }
331        
332        ray_init_pmap();     /* PMAP: set up & load photon maps */
333        
334        marksources();                  /* find and mark sources */
334  
335 <        setambient();                   /* initialize ambient calculation */
336 <        
335 >        if (!castonly) {        /* any actual ray traversal to do? */
336 >
337 >                ray_init_pmap();        /* PMAP: set up & load photon maps */
338 >                
339 >                marksources();          /* find and mark sources */
340 >
341 >                setambient();           /* initialize ambient calculation */
342 >        }
343   #ifdef  PERSIST
344          if (persist) {
345                  fflush(stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines