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

Comparing ray/src/rt/rxpiece.cpp (file contents):
Revision 2.7 by greg, Wed Nov 6 18:28:52 2024 UTC vs.
Revision 2.10 by greg, Thu Jan 9 17:25:37 2025 UTC

# Line 56 | Line 56 | static RenderDataType rpiece(char *pout, RenderDataTyp
56                  "AdaptiveShadowTesting\nOutputs=v,l\n" \
57                  "OutputCS=RGB,XYZ,prims,spec\n"
58  
59
59   // Exit program
60   void
61   quit(int code)                          /* quit program */
62   {
63 <        if (nproc < 0) {
65 <                ray_pnprocs = -1;       // hack to avoid cleanup in child
66 <                _exit(code);
67 <        }
68 <        exit(code);                     // parent still frees everything (*yawn*)
63 >        exit(code);                     // don't bother to free data structs
64   }
65  
66 + /* Set default options */
67 + static void
68 + default_options(void)
69 + {
70 +        shadthresh = .05;
71 +        shadcert = .5;
72 +        srcsizerat = .25;
73 +        directrelay = 1;
74 +        ambacc = 0.2;
75 +        ambres = 64;
76 +        ambdiv = 512;
77 +        ambssamp = 128;
78 +        maxdepth = 7;
79 + }
80  
81   int
82   main(int  argc, char  *argv[])
# Line 95 | Line 104 | main(int  argc, char  *argv[])
104          strcat(RFeatureList, RXPIECE_FEATURES);
105          if (argc > 1 && !strcmp(argv[1], "-features"))
106                  return feature_status(argc-2, argv+2);
107 +                                        /* set defaults */
108 +        default_options();
109                                          /* option city */
110          for (i = 1; i < argc; i++) {
111                                                  /* expand arguments */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines