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

Comparing ray/src/rt/rayinit.cal (file contents):
Revision 2.19 by greg, Mon Jun 10 13:56:52 2019 UTC vs.
Revision 2.20 by greg, Mon Nov 10 20:36:45 2025 UTC

# Line 93 | Line 93 | and(a,b) : if( a, b, a );
93   or(a,b) : if( a, a, b );
94   not(a) : if( a, -1, 1 );
95   xor(a,b) : if( a, not(b), b );
96 < abs(x) : if( x, x, -x );
96 > abs(x) : max(x, -x);
97   sgn(x) : if( x, 1, if(-x, -1, 0) );
98   sq(x) : x*x;
99   inside(a,x,b) : and(x-a,b-x);
# Line 104 | Line 104 | linterp(t,p0,p1) : (1-t)*p0 + t*p1;
104  
105   noop(v) : v;
106   clip(v) : bound(0,v,1);
107 < noneg(v) : if(v,v,0);
108 < red(r,g,b) : if(r,r,0);
109 < green(r,g,b) : if(g,g,0);
110 < blue(r,g,b) : if(b,b,0);
107 > noneg(v) : max(v,0);
108 > red(r,g,b) : max(r,0);
109 > green(r,g,b) : max(g,0);
110 > blue(r,g,b) : max(b,0);
111   grey(r,g,b) : noneg(.265074126*r + .670114631*g + .064811243*b);
112   clip_r(r,g,b) : bound(0,r,1);
113   clip_g(r,g,b) : bound(0,g,1);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)