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

Comparing ray/src/cal/cal/LaFortune1.cal (file contents):
Revision 1.1 by greg, Tue Mar 18 16:16:37 2014 UTC vs.
Revision 1.2 by greg, Mon Jun 10 13:56:52 2019 UTC

# Line 10 | Line 10 | Cz : 0.586571000768196;
10   n : 29.629194300125050;
11  
12                          { Useful functions }
13 max(a,b) : if(a-b, a, b);
13   abs(x) : if(x, x, -x);
14   noneg(x) : if(x, x, 0);
15  
16          { Normalization factor based on parameters }
17 < snf : (n+2)/(2*PI*max(abs(Cx),max(abs(Cy),abs(Cz)))^n);
17 > snf : (n+2)/(2*PI*max(abs(Cx),abs(Cy),abs(Cz))^n);
18  
19   { Note that we assume i and o vectors are normalized, both pointing away }
20  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines