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.16 by schorsch, Sat Mar 19 12:51:36 2016 UTC vs.
Revision 2.21 by greg, Thu Jan 18 00:28:54 2024 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 + int
59   main(int argc, char *argv[])
60   {
61   #define  check(ol,al)           if (argv[i][ol] || \
# Line 82 | 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 190 | Line 191 | main(int argc, char *argv[])
191                          goto badopt;
192                  }
193          }
194 +                                        /* set/check spectral sampling */
195 +        if (setspectrsamp(CNDX, WLPART) <= 0)
196 +                error(USER, "unsupported spectral sampling");
197 +
198          err = setview(&ourview);        /* set viewing parameters */
199          if (err != NULL)
200                  error(USER, err);
# Line 256 | Line 261 | badopt:
261  
262   void
263   wputs(                          /* warning output function */
264 <        char    *s
264 >        const char      *s
265   )
266   {
267          int  lasterrno = errno;
# Line 267 | Line 272 | wputs(                         /* warning output function */
272  
273   void
274   eputs(                          /* put string to stderr */
275 <        char  *s
275 >        const char  *s
276   )
277   {
278          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines