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

Comparing ray/src/rt/rpict.c (file contents):
Revision 2.101 by greg, Wed Jul 3 16:46:43 2024 UTC vs.
Revision 2.105 by greg, Fri Nov 15 20:47:42 2024 UTC

# Line 119 | Line 119 | time_t  tstart;                                /* starting time */
119  
120   int  hres, vres;                        /* resolution for this frame */
121  
122 + extern void     sskip_ray(RAY *r, double h, double v);
123 +
124   static VIEW     lastview;               /* the previous view input */
125  
126   static void report(int);
# Line 474 | Line 476 | render(                                /* render the scene */
476                                                          /* fill bar */
477                  fillscanbar(scanbar, zbar, hres, ypos, ystep);
478                  if (srcdrawing)                         /* add bitty sources */
479 <                        drawsources((COLORV **)scanbar, zbar, 0, hres, ypos, ystep);
479 >                        drawsources((COLORV **)scanbar, out_prims, zbar, 0, hres, ypos, ystep);
480                                                          /* write it out */
481   #ifdef SIGCONT
482                  signal(SIGCONT, SIG_IGN);       /* don't interrupt writes */
# Line 668 | Line 670 | pixvalue(              /* compute pixel value */
670          int  y
671   )
672   {
671        static COLORMAT xyz2myrgbmat;
673          RAY  thisray;
674          FVECT   lorg, ldir;
675          double  hpos, vpos, lmax;
# Line 700 | Line 701 | pixvalue(              /* compute pixel value */
701                  return(0.0);
702  
703          rayorigin(&thisray, PRIMARY, NULL, NULL);
704 <
704 > #ifdef SSKIPOPT
705 >        sskip_ray(&thisray, hpos, vpos);        /* source skip hack */
706 > #endif
707          rayvalue(&thisray);                     /* trace ray */
708 <
709 <        if (out_prims == stdprims) {            /* return color */
707 <                scolor_rgb(col, thisray.rcol);
708 <        } else if (out_prims == xyzprims) {
709 <                scolor_cie(col, thisray.rcol);
710 <                scalecolor(col, WHTEFFICACY);
711 <        } else if (NCSAMP > 3) {
712 <                COLOR   xyz;
713 <                if (xyz2myrgbmat[0][0] == 0)
714 <                        compxyz2rgbWBmat(xyz2myrgbmat, out_prims);
715 <                scolor_cie(xyz, thisray.rcol);
716 <                colortrans(col, xyz2myrgbmat, xyz);
717 <                clipgamut(col, xyz[CIEY], CGAMUT_LOWER, cblack, cwhite);
718 <        } else
719 <                copycolor(col, thisray.rcol);
708 >                                                /* -> color */
709 >        scolor_out(col, out_prims, thisray.rcol);
710  
711          return(raydistance(&thisray));          /* return distance */
712   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines