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

Comparing ray/src/rt/rayinit.cal (file contents):
Revision 1.3 by greg, Wed Oct 9 11:36:45 1991 UTC vs.
Revision 1.4 by greg, Wed Oct 23 08:50:27 1991 UTC

# Line 91 | Line 91 | linterp(t,p0,p1) : (1-t)*p0 + t*p1;
91  
92   noop(v) = v;
93   clip(v) = bound(0,v,1);
94 < noneg(v) = max(0,v);
95 < red(r,g,b) = r;
96 < green(r,g,b) = g;
97 < blue(r,g,b) = b;
94 > noneg(v) = if(v,v,0);
95 > red(r,g,b) = if(r,r,0);
96 > green(r,g,b) = if(g,g,0);
97 > blue(r,g,b) = if(b,b,0);
98   grey(r,g,b) = .3*r + .59*g + .11*b;
99   clip_r(r,g,b) = bound(0,r,1);
100   clip_g(r,g,b) = bound(0,g,1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines