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.3 by greg, Thu Jul 25 12:52:21 1991 UTC vs.
Revision 1.4 by greg, Thu Aug 22 12:12:25 1991 UTC

# Line 96 | Line 96 | FVECT  u, v, w;
96          FILE  *dfp;
97          int  i;
98  
99        average(il, da, n*m);
99          if (il->flags & IL_COLDST) {
100                  printf("\n%s %s %s%s", VOIDID, ofun[PAT_CDATA].funame,
101                                  il->matname, DSTSUF);
# Line 135 | Line 134 | int  n, m;
134          FILE  *dfp;
135          int  i;
136  
138        average(il, da, n*m);
137          if (il->flags & IL_COLDST) {
138                  printf("\n%s %s %s%s", VOIDID, ofun[PAT_CDATA].funame,
139                                  il->matname, DSTSUF);
# Line 169 | Line 167 | OBJREC  *ob;
167   {
168          double  cout[3];
169  
170 <        printf("\n%s%s %s %s", il->matname, DSTSUF,
171 <                        ofun[il->flags&IL_LIGHT?MAT_LIGHT:MAT_ILLUM].funame,
170 >        if (il->sampdens <= 0)
171 >                printf("\n%s ", VOIDID);
172 >        else
173 >                printf("\n%s%s ", il->matname, DSTSUF);
174 >        printf("%s %s", ofun[il->flags&IL_LIGHT?MAT_LIGHT:MAT_ILLUM].funame,
175                          il->matname);
176          if (il->flags & IL_LIGHT || !strcmp(il->altmat,VOIDID))
177                  printf("\n0");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines