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

Comparing ray/src/util/ambpos.cal (file contents):
Revision 2.2 by greg, Thu May 1 02:52:03 2014 UTC vs.
Revision 2.3 by greg, Thu May 1 03:00:59 2014 UTC

# Line 16 | Line 16 | rdz = ndx*rpy - ndy*rpx;
16   dgrad = (rdx*dgx + rdy*dgy + rdz*dgz)/sqrt(rpx*rpx + rpy*rpy + rpz*rpz);
17   dirfunc = bound(0, 1 + dgrad, 2);
18  
19 { Relative hit point }
20 rpx = Px - arg(1);
21 rpy = Py - arg(2);
22 rpz = Pz - arg(3);
23
19   { Calculation of positional gradient pattern }
20   pgx = arg(4); pgy = arg(5); pgz = arg(6);
21   posfunc = bound(0, 1 + (pgx*rpx + pgy*rpy + pgz*rpz), 2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines