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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.59 by greg, Sat Jun 7 05:09:46 2025 UTC vs.
Revision 2.62 by greg, Fri Dec 5 17:51:34 2025 UTC

# Line 18 | Line 18 | static const char      RCSid[] = "$Id$";
18   #include  "ambient.h"
19   #include  "random.h"
20   #include  "pmapray.h"
21
22 extern char     *progname;              /* global argv[0] */
23
21                                          /* persistent processes define */
22   #ifdef  F_SETLKW
23   #define  PERSIST        1               /* normal persist */
# Line 304 | Line 301 | main(int  argc, char  *argv[])
301                          case 'S':                       /* scotopic response */
302                                  if (argv[i][3])
303                                          goto badopt;
307                                sens_curve = scolor_scotopic;
304                                  out_scalefactor = WHTSCOTOPIC;
305 +                                sens_curve = scolor_scotopic;
306                                  break;
307                          case 'M':                       /* melanopic response */
308                                  if (argv[i][3])
309                                          goto badopt;
313                                sens_curve = scolor_melanopic;
310                                  out_scalefactor = WHTMELANOPIC;
311 +                                sens_curve = scolor_melanopic;
312                                  break;
313 +                        case 'A':                       /* radiometric average */
314 +                                if (argv[i][3])
315 +                                        goto badopt;
316 +                                out_scalefactor = 1;
317 +                                sens_curve = scolor_mean;
318 +                                break;
319                          default:
320                                  goto badopt;
321                          }
# Line 362 | Line 365 | main(int  argc, char  *argv[])
365                                          /* initialize object types */
366          initotypes();
367                                          /* initialize urand */
368 <        if (rand_samp) {
366 <                srandom((long)time(0));
367 <                initurand(0);
368 <        } else {
369 <                srandom(0L);
370 <                initurand(2048);
371 <        }
368 >        reset_random();
369                                          /* set up signal handling */
370          sigdie(SIGINT, "Interrupt");
371   #ifdef SIGHUP

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)