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

Comparing ray/src/px/pcond3.c (file contents):
Revision 3.1 by greg, Thu Oct 3 16:52:50 1996 UTC vs.
Revision 3.3 by greg, Fri Oct 11 10:47:00 1996 UTC

# Line 13 | Line 13 | static char SCCSid[] = "$SunId$ LBL";
13  
14   #define CVRATIO         0.025           /* fraction of pixels allowed > env. */
15  
16 #define BotMesopic      5.62e-3         /* top of scotopic range */
17 #define TopMesopic      5.62            /* bottom of photopic range */
18
16   #define exp10(x)        exp(2.302585093*(x))
17  
18   int     modhist[HISTRES];               /* modified histogram */
# Line 180 | Line 177 | int    xres;
177                          incolor = (Lw - BotMesopic) /
178                                          (TopMesopic - BotMesopic);
179                  if (incolor < 1.-FTINY) {
180 +                        b = (1.-incolor)*slum(scan[i])*inpexp/SWNORM;
181 +                        if (lumf == rgblum) b /= WHTEFFICACY;
182 +                        setcolor(ctmp, b, b, b);
183                          if (incolor <= FTINY)
184                                  setcolor(scan[i], 0., 0., 0.);
185                          else
186                                  scalecolor(scan[i], incolor);
187                        b = (1.-incolor)*slum(scan[i])*inpexp/SWNORM;
188                        if (lumf == rgblum) b /= WHTEFFICACY;
189                        setcolor(ctmp, b, b, b);
187                          addcolor(scan[i], ctmp);
188                  }
189          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines