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

Comparing ray/src/util/findglare.c (file contents):
Revision 2.3 by greg, Fri Nov 13 13:19:16 1992 UTC vs.
Revision 2.6 by greg, Mon Jun 7 10:31:35 1993 UTC

# Line 105 | Line 105 | char   *argv[];
105                          combine = !combine;
106                          break;
107                  case 'd':
108 +                        if (argv[i][2] == 'v') {
109 +                                rtargv[rtargc++] = argv[i];
110 +                                break;
111 +                        }
112 +                        /* FALL THROUGH */
113                  case 'l':
114                  case 's':
115 +                case 'P':
116                          rtargv[rtargc++] = argv[i];
117                          rtargv[rtargc++] = argv[++i];
118                          break;
119 +                case 'w':
120 +                        rtargv[rtargc++] = argv[i];
121 +                        break;
122                  case 'a':
123                          rtargv[rtargc++] = argv[i];
124                          if (argv[i][2] == 'v') {
# Line 355 | Line 364 | int    x, y;
364                  xo = x-hl;
365          else
366                  xo = 0;
367 <        disc = 1. - (double)(xo*xo + y*y)/(sampdens*sampdens);
368 <        if (disc <= FTINY)
367 >        disc = 1. - (double)((long)xo*xo + (long)y*y)/((long)sampdens*sampdens);
368 >        if (disc <= FTINY*FTINY)
369                  return(0.);
370          return(1./(sampdens*sampdens*sqrt(disc)));
371   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines