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

Comparing ray/src/gen/mkillum3.c (file contents):
Revision 1.6 by greg, Mon Aug 26 10:16:59 1991 UTC vs.
Revision 2.1 by greg, Tue Nov 12 17:05:08 1991 UTC

# Line 10 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10  
11   #include  "mkillum.h"
12  
13 < #define  brt(col)       (.295*(col)[0] + .635*(col)[1] + .070*(col)[2])
13 > #define  brt(col)       (.263*(col)[0]+.655*(col)[1]+.082*(col)[2])
14  
15   char    DATORD[] = "RGB";               /* data ordering */
16   char    DATSUF[] = ".dat";              /* data file suffix */
# Line 112 | Line 112 | FVECT  u, v, w;
112          } else {
113                  printf("\n%s %s %s%s", VOIDID, ofun[PAT_BDATA].funame,
114                                  il->matname, DSTSUF);
115 <                printf("\n5 noop");
115 >                printf("\n5 noneg");
116                  dfp = dfopen(il, 0);
117                  fprintf(dfp, "2\n%f %f %d\n%f %f %d\n", 1.-.5/n, .5/n, n,
118                                  0., 2.*PI, m+1);
# Line 153 | Line 153 | int  n, m;
153          } else {
154                  printf("\n%s %s %s%s", VOIDID, ofun[PAT_BDATA].funame,
155                                  il->matname, DSTSUF);
156 <                printf("\n5 noop");
156 >                printf("\n5 noneg");
157                  dfp = dfopen(il, 0);
158                  fprintf(dfp, "2\n%f %f %d\n%f %f %d\n", 1.-1./n, -1.+1./n, n,
159                                  0., 2.*PI, m+1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines