21 |
|
|
22 |
|
Lu, Lv - local (u,v) coordinates |
23 |
|
|
24 |
< |
For brdf functions, the following are also available: |
24 |
> |
For *func & *data materials, the following are also available: |
25 |
|
|
26 |
|
NxP, NyP, NzP - perturbed surface normal |
27 |
|
RdotP - perturbed ray dot product |
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 |
|
|
51 |
|
|
52 |
|
rand(x) - pseudo-random function (0 to 1) |
53 |
|
|
54 |
– |
hermite(p0,p1,r0,r1,t) - 1-dimensional hermite polynomial |
55 |
– |
|
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 |
|
|
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)) + |