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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.72 by greg, Fri Feb 12 00:41:19 2021 UTC vs.
Revision 2.76 by greg, Tue Dec 3 19:36:58 2024 UTC

# Line 459 | Line 459 | getexposure(                           /* get new exposure */
459                                          return;
460                          }
461                  }
462 <                if (*cp == '+' || *cp == '-')   /* f-stops */
462 >                if ((*cp == '+') | (*cp == '-'))        /* f-stops */
463                          e *= pow(2.0, atof(cp));
464                  else                            /* multiplier */
465                          e *= atof(cp);
# Line 755 | Line 755 | traceray(                              /* trace a single ray */
755   {
756          RAY     thisray;
757          char    buf[512];
758 +        COLOR   col;
759  
760          thisray.rmax = 0.0;
761  
# Line 820 | Line 821 | traceray(                              /* trace a single ray */
821                          (*dev->comout)(buf);
822                  }
823                  (*dev->comin)(buf, NULL);
824 +                scolor_rgb(col, thisray.rcol);
825                  sprintf(buf, "value (%.5g %.5g %.5g) (%.3gL)",
826 <                                colval(thisray.rcol,RED),
827 <                                colval(thisray.rcol,GRN),
828 <                                colval(thisray.rcol,BLU),
829 <                                luminance(thisray.rcol));
826 >                                colval(col,RED),
827 >                                colval(col,GRN),
828 >                                colval(col,BLU),
829 >                                luminance(col));
830                  (*dev->comout)(buf);
831          }
832          (*dev->comin)(buf, NULL);
# Line 870 | Line 872 | writepict(                             /* write the picture to a file */
872                  fputexpos(exposure, fp);
873          if (dev->pixaspect != 1.0)
874                  fputaspect(dev->pixaspect, fp);
875 +        fputprims(stdprims, fp);
876          fputformat(COLRFMT, fp);
877          putc('\n', fp);
878          fprtresolu(hresolu, vresolu, fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines