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 2.8 by greg, Wed Aug 17 11:07:56 1994 UTC vs.
Revision 2.9 by greg, Fri Sep 2 12:02:17 1994 UTC

# Line 80 | Line 80 | typedef float  COLOR[3];       /* red, green, blue */
80   #define CIE_gf          (CIE_y_g*CIE_C_gD/CIE_D)
81   #define CIE_bf          (CIE_y_b*CIE_C_bD/CIE_D)
82  
83 + /* As of 9-94, CIE_rf=.265074126, CIE_gf=.670114631 and CIE_bf=.064811243 */
84 +
85   #define  bright(col)    (CIE_rf*(col)[RED]+CIE_gf*(col)[GRN]+CIE_bf*(col)[BLU])
86   #define  normbright(c)  ( ( (long)(CIE_rf*256.+.5)*(c)[RED] + \
87                              (long)(CIE_gf*256.+.5)*(c)[GRN] + \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines