--- ray/doc/ray.html 2023/11/15 18:28:10 1.33 +++ ray/doc/ray.html 2023/12/12 20:25:22 1.37 @@ -1,5 +1,5 @@ - +
- The first two real arguments indicate the limits of the covered + The first two real arguments indicate the extrema of the spectral range in nanometers. - Subsequent real values correspond to multipliers in each wavelength band, - where the first band goes from nmA to nmA+(nmB-nmA)/N, and N is the - number of bands (i.e., the number of real arguments minus 2). - The nmA wavelength may be greater or less than the nmB wavelength, - but they may not be equal, and their ordering must correspond to - the ordering of the spectral values. + Subsequent real values correspond to multipliers at each wavelength. + The nmA wavelength may be greater or less than nmB, + but they may not be equal, and their ordering matches + the order of the spectral values. A minimum of 3 values must be given, which would act more or less the same as a constant RGB multiplier. As with RGB values, spectral quantities normally range between 0 @@ -1542,7 +1540,7 @@ or:
mod specfunc id - 2+ sval funcfile transform + 2+ sfunc funcfile transform 0 2+ nmA nmB A3 ..@@ -1550,7 +1548,7 @@ or:
Like the spectrum primitive, the wavelength range is specified in the first two real arguments, and additional real values are - accessible to the sval function. + set in the evaluation context. This function is fed a wavelenth sample between nmA and nmB as its only argument, and it returns the corresponding spectral intensity.