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.14 by greg, Mon Feb 17 19:19:45 2020 UTC vs.
Revision 2.15 by greg, Mon Feb 17 19:35:24 2020 UTC

# Line 380 | Line 380 | dgi(           /* compute Daylight Glare Index */
380                  omega += (2.*PI-r*PI*(1.+1./(r*r)))*(-p[0]-0.1667*(p[1]+p[3])
381                            +0.3334*(p[2]+p[4]+p[5]+p[6]));
382                  if (omega <= 0.)
383 <                        omega = 0.;
383 >                        continue;
384                  sum += pow(gs->lum,1.6) * pow(omega,0.8) /
385                         (gd->indirect*(1./PI) + 0.07*sqrt(gs->dom)*gs->lum);
386          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines