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

Comparing ray/src/rt/rvmain.c (file contents):
Revision 2.15 by schorsch, Thu Mar 10 18:25:46 2016 UTC vs.
Revision 2.19 by greg, Mon Feb 6 22:40:21 2023 UTC

# Line 55 | Line 55 | static void onsig(int  signo);
55   static void sigdie(int  signo, char  *msg);
56   static void printdefaults(void);
57  
58
58   int
59   main(int argc, char *argv[])
60   {
# Line 84 | Line 83 | main(int argc, char *argv[])
83          specthresh = .3;
84          specjitter = 1.;
85          maxdepth = 6;
86 <        minweight = 1e-2;
86 >        minweight = 1e-3;
87          ambacc = 0.3;
88          ambres = 32;
89          ambdiv = 256;
# Line 230 | Line 229 | main(int argc, char *argv[])
229          
230          ray_init(octnm);                /* also calls ray_init_pmap() */
231          
232 + /* temporary shortcut, until winrview is refactored into a "device" */
233 + #ifndef WIN_RVIEW
234          rview();                        /* run interactive viewer */
235  
236 +
237          devclose();                     /* close output device */
238 + #endif
239  
240          /* PMAP: free photon maps */
241          ray_done_pmap();
242          
243 + #ifdef WIN_RVIEW
244 +        return 1;
245 + #endif
246          quit(0);
247  
248   badopt:
# Line 251 | Line 257 | badopt:
257  
258   void
259   wputs(                          /* warning output function */
260 <        char    *s
260 >        const char      *s
261   )
262   {
263          int  lasterrno = errno;
# Line 262 | Line 268 | wputs(                         /* warning output function */
268  
269   void
270   eputs(                          /* put string to stderr */
271 <        char  *s
271 >        const char  *s
272   )
273   {
274          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines