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

Comparing ray/src/cv/lampcolor.c (file contents):
Revision 1.7 by greg, Tue Oct 22 09:38:17 1991 UTC vs.
Revision 1.8 by greg, Thu Oct 24 12:17:38 1991 UTC

# 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,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines