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

Comparing ray/src/common/color.h (file contents):
Revision 1.13 by greg, Thu Oct 24 10:29:03 1991 UTC vs.
Revision 1.14 by greg, Thu Oct 24 12:15:07 1991 UTC

# Line 48 | Line 48 | typedef float  COLOR[3];       /* red, green, blue */
48   #define  normbright(c)          (int)((67L*(c)[RED]+168L*(c)[GRN]+21L*(c)[BLU])/256)
49   #endif
50  
51 < #define  D65EFFICACY            203.            /* luminous efficacy of D65 */
52 < #define  luminance(col)         (D65EFFICACY * bright(col))
51 >                                /* luminous efficacies over visible spectrum */
52 > #define  MAXEFFICACY            683.            /* defined maximum at 550 nm */
53 > #define  WHTEFFICACY            179.            /* uniform white light */
54 > #define  D65EFFICACY            203.            /* standard illuminant D65 */
55 > #define  INCEFFICACY            160.            /* illuminant A (incand.) */
56 > #define  SUNEFFICACY            208.            /* illuminant B (solar dir.) */
57 > #define  SKYEFFICACY            D65EFFICACY     /* skylight */
58 > #define  DAYEFFICACY            D65EFFICACY     /* combined sky and solar */
59 >
60 > #define  luminance(col)         (WHTEFFICACY * bright(col))
61  
62   #define  intens(col)            ( (col)[0] > (col)[1] \
63                                  ? (col)[0] > (col)[2] ? (col)[0] : (col)[2] \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines