# | Line 10 | Line 10 | static char SCCSid[] = "$SunId$ LBL"; | |
---|---|---|
10 | ||
11 | #include <stdio.h> | |
12 | ||
13 | + | #include "color.h" |
14 | + | |
15 | #define PI 3.14159265358979323846 | |
16 | ||
17 | extern char *gets(), *strcpy(); | |
# | Line 173 | Line 175 | compute() /* compute lamp radiance */ | |
175 | { | |
176 | double whiteval; | |
177 | ||
178 | < | whiteval = lumens/470./PI/area; |
178 | > | whiteval = lumens/area/(WHTEFFICACY*PI); |
179 | ||
180 | printf("Lamp color (RGB) = %f %f %f\n", | |
181 | lampcolor[0]*whiteval, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |