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

Comparing ray/src/cv/bsdf2rad.cal (file contents):
Revision 2.5 by greg, Tue Apr 11 02:34:10 2017 UTC vs.
Revision 2.6 by greg, Tue Apr 11 18:26:55 2017 UTC

# Line 13 | Line 13 | LONGWIDTH : 1.*DEGREE;
13   mylong = atan2(Ny,Nx);
14  
15   latlong = if(LATWIDTH-mod(Acos(Nz)+LATWIDTH/2,LATSTEP), .05,
16 <                if(LONGWIDTH-mod(mylong+LONGWIDTH/2,90*DEGREE), .01,
16 >                if(LONGWIDTH-mod(mylong+LONGWIDTH/2,90*DEGREE), .02,
17                  if(LONGWIDTH-mod(mylong+LONGWIDTH/2,LONGSTEP), .3, 1)));
18  
19                  { Compute up vector corresponding to sphere position }
20   ur2 = Nx*Nx + Ny*Ny;
21   upx = Nx*Ny*(Nz - 1);
22 < upy = if(ur2 - FTINY, Nx*Nx + Ny*Ny*Nz, 1);
22 > upy = if(ur2 - FTINY, Nx*Nx + Ny*Ny*Nz, Nz);
23   upz = -Ny*ur2;
24  
25   interp_arr2`(i,x,f):(i+1-x)*f(i)+(x-i)*f(i+1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines