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

Comparing ray/src/util/glare.h (file contents):
Revision 1.3 by greg, Mon Mar 18 15:06:30 1991 UTC vs.
Revision 1.4 by greg, Mon Mar 18 16:06:51 1991 UTC

# Line 13 | Line 13
13  
14   #define GLAREBR         10.0            /* glare source is this * avg. lum. */
15  
16 < #define SAMPDENS        50              /* samples per unit in image */
16 > #define SAMPDENS        50              /* default samples per unit in image */
17   #define TSAMPSTEP       10              /* sample step to compute threshold */
18  
19   #define SEPS            2               /* sources this close ==> contig. */
# Line 25 | Line 25 | extern VIEW    leftview, rightview;    /* leftmost and right
25   extern int      verbose;                /* verbose reporting */
26   extern char     *progname;              /* global argv[0] */
27  
28 + extern int      sampdens;               /* sample density */
29   extern ANGLE    glarang[];              /* glare calculation angles */
30   extern int      nglarangs;
31   extern double   maxtheta;               /* maximum glare angle (in radians) */
# Line 32 | Line 33 | extern int     hsize;                  /* horizontal size */
33   extern int      hlim;                   /* horizontal limit of central view */
34  
35   #define nglardirs       (2*nglarangs+1)
36 < #define vsize           SAMPDENS
37 < #define h_theta(h)      ((double)(h)/-(double)SAMPDENS)
36 > #define vsize           sampdens
37 > #define h_theta(h)      (-(double)(h)/(double)sampdens)
38  
39   extern struct illum {
40          float   theta;          /* glare direction */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines