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 2.13 by greg, Sat Feb 22 02:07:29 2003 UTC vs.
Revision 2.16 by greg, Tue Oct 8 18:59:44 2013 UTC

# Line 1 | Line 1
1 < { RCSid: $Id$ }
1 > { RCSid $Id$ }
2   {
3          Initialization file for Radiance.
4  
# Line 17 | Line 17
17          Kx, Ky, Kz                      - world k unit vector
18          arg(n)                          - real arguments, arg(0) is count
19  
20 <        For brdf functions, the following are also available:
20 >        For mesh objects, the following are available:
21  
22 +        Lu, Lv                          - local (u,v) coordinates
23 +
24 +        For *func & *data materials, the following are also available:
25 +
26          NxP, NyP, NzP                   - perturbed surface normal
27          RdotP                           - perturbed ray dot product
28          CrP, CgP, CbP                   - perturbed material color
# Line 37 | Line 41
41  
42          sin(x), cos(x), tan(x),
43          asin(x), acos(x),
44 <        atan(x), atan2(y,x)             - standard trig functions
44 >        atan(x), atan2(y,x)             - standard trig functions (radians)
45  
46          floor(x), ceil(x)               - g.l.b. & l.u.b.
47  
# Line 47 | Line 51
51  
52          rand(x)                         - pseudo-random function (0 to 1)
53  
50        hermite(p0,p1,r0,r1,t)          - 1-dimensional hermite polynomial
51
54          noise3(x,y,z), noise3x(x,y,z),
55          noise3y(x,y,z), noise3z(x,y,z)  - noise function with gradient (-1 to 1)
56  
# Line 118 | Line 120 | cross(i,v1,v2) : select(i,     v1(2)*v2(3) - v1(3)*v2(2),
120  
121   fade(near_val,far_val,dist) : far_val +
122                  if (16-dist, (near_val-far_val)/(1+dist*dist), 0);
123 +
124 + hermite(p0,p1,r0,r1,t) :        p0 * ((2*t-3)*t*t+1) +
125 +                                p1 * (-2*t+3)*t*t +
126 +                                r0 * (((t-2)*t+1)*t) +
127 +                                r1 * ((t-1)*t*t);
128  
129   bezier(p1, p2, p3, p4, t) :     p1 * (1+t*(-3+t*(3-t))) +
130                                  p2 * 3*t*(1+t*(-2+t)) +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines