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

Comparing ray/src/util/glarendx.c (file contents):
Revision 2.2 by greg, Tue Apr 28 09:11:00 1992 UTC vs.
Revision 2.3 by greg, Thu Nov 19 09:59:08 1992 UTC

# Line 289 | Line 289 | FVECT  sd, vd, vu;
289          d = DOT(sd,vu)/sqrt(1.0-d*d);
290          if (d >= 1.0)
291                  tau = 0.0;
292 +        else if (d <= -1.0)
293 +                tau = 180.0;
294          else
295                  tau = acos(d) * (180./PI);
296          return( exp( sigma*( (35.2 - tau*.31889 - 1.22*exp(-.22222*tau))*1e-3

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines