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

Comparing ray/src/util/glaresrc.c (file contents):
Revision 1.2 by greg, Mon Mar 18 14:32:17 1991 UTC vs.
Revision 1.3 by greg, Mon Mar 18 16:06:53 1991 UTC

# Line 88 | Line 88 | double br;
88          register int    i;
89  
90          if (h <= -hlim) {                       /* left region */
91 <                d = (double)(h+hlim)/SAMPDENS;
91 >                d = (double)(h+hlim)/sampdens;
92                  if (d <= -1.0+FTINY)
93                          return;
94                  tanb = d/sqrt(1.0-d*d);
# Line 102 | Line 102 | double br;
102                  return;
103          }
104          if (h >= hlim) {                        /* right region */
105 <                d = (double)(h-hlim)/SAMPDENS;
105 >                d = (double)(h-hlim)/sampdens;
106                  if (d >= 1.0-FTINY)
107                          return;
108                  tanb = d/sqrt(1.0-d*d);
# Line 265 | Line 265 | register struct source *sp;
265          sp->dom = 0.0;
266          sp->dir[0] = sp->dir[1] = sp->dir[1] = 0.0;
267          sp->brt = 0.0;
268 +        n = 0;
269          for (ss = sp->first; ss != NULL; ss = ss->next) {
270                  sp->brt += ss->brsum;
271                  n += ss->r - ss->l;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines