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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.22 by greg, Tue Aug 15 01:19:37 2023 UTC vs.
Revision 2.23 by greg, Fri Nov 17 20:02:07 2023 UTC

# Line 23 | Line 23 | char   RFeatureList[2048] =    /* newline-separated feature
23                  "ScatteringModels=WGMD,Ashikhmin-Shirley\n"
24                  "TabulatedBSDFs=DataFile,KlemsXML,TensorTreeXML,+ViewPeakExtraction\n"
25                  "Instancing=Octree,TriangleMesh\nAliases\n"
26 + #if MAXCSAMP>3
27 +                "Hyperspectral\n"
28 + #endif
29   #if !defined(SHADCACHE) || SHADCACHE > 0
30                  "ShadowCache\n"
31   #endif
# Line 307 | Line 310 | getrenderopt(          /* get next render option */
310                          return(1);
311                  }
312                  break;
313 + #if MAXCSAMP>3
314 +        case 'c':                               /* spectral sampling */
315 +                switch (av[0][2]) {
316 +                case 's':                       /* spectral bin count */
317 +                        check(3,"i");
318 +                        NCSAMP = atoi(av[1]);
319 +                        return(1);
320 +                case 'w':                       /* wavelength extrema */
321 +                        check(3,"ff");
322 +                        WLPART[0] = atof(av[1]);
323 +                        WLPART[3] = atof(av[2]);
324 +                        return(1);
325 +                }
326 +                break;
327 + #endif
328          }
329          
330          /* PMAP: Parse photon mapping options */
# Line 354 | Line 372 | print_rdefaults(void)          /* print default render values
372                          colval(salbedo,GRN), colval(salbedo,BLU));
373          printf("-mg %f\t\t\t# mist scattering eccentricity\n", seccg);
374          printf("-ms %f\t\t\t# mist sampling distance\n", ssampdist);
375 +        if (NCSAMP > 3) {
376 +                printf("-cs %-2d\t\t\t\t# number of spectral bins\n", NCSAMP);
377 +                printf("-cw %3.0f %3.0f\t\t\t# wavelength limits (nm)\n",
378 +                                WLPART[3], WLPART[0]);
379 +        }
380          printf("-lr %-9d\t\t\t# limit reflection%s\n", maxdepth,
381                          maxdepth<=0 ? " (Russian roulette)" : "");
382          printf("-lw %.2e\t\t\t# limit weight\n", minweight);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines