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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.111 by greg, Mon Dec 11 18:54:42 2023 UTC vs.
Revision 2.112 by greg, Sat Jan 6 01:21:34 2024 UTC

# Line 959 | Line 959 | putscolor(COLORV *scol)                /* output (spectral) color */
959          static COLORMAT xyz2myrgbmat;
960          SCOLOR          my_scol;
961          COLOR           col;
962 <                                        /* apply scalefactor if any */
963 <        if (out_scalefactor != 1.) {
962 >                                        /* single channel output? */
963 >        if (sens_curve != NULL) {
964 >                RREAL   v = (*sens_curve)(scol) * out_scalefactor;
965 >                (*putreal)(&v, 1);
966 >                return;
967 >        }
968 >        if (out_scalefactor != 1.) {    /* apply scalefactor if any */
969                  copyscolor(my_scol, scol);
970                  scalescolor(my_scol, out_scalefactor);
971                  scol = my_scol;
967        }
968        if (sens_curve != NULL) {       /* single channel output */
969                RREAL   v = (*sens_curve)(scol);
970                (*putreal)(&v, 1);
971                return;
972          }
973          if (out_prims == NULL) {        /* full spectral reporting */
974                  if (outform == 'c') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines