Light Spectrum Improvements

Improved clamping for light color spectra outside the color gamut, when rendering in RGB, since converting a spectrum to VREDs RGB-based colorspace can result in creating negative values. Now, RGB and spectral rendering results are much closer.

In previous versions of VRED, this led to incorrect colors, especially when using Ray files with a single wavelength per ray.

Note:

Material colors must still be clamped between the 0-1 range in RGB to avoid incorrect calculations.

This change will significantly influence the render result wherever out-of-gamut colors occur. Any positive RGB values should be unaffected.

With a Ray Light selected, use the Emitter Cone option we added to the Light Editor > Light Settings tab > Ray File section to clamp colors outside the color gamut.