87 |
|
} |
88 |
|
|
89 |
|
|
90 |
– |
illumout(il, ob) /* print illum object */ |
91 |
– |
register struct illum_args *il; |
92 |
– |
OBJREC *ob; |
93 |
– |
{ |
94 |
– |
double cout[3]; |
95 |
– |
|
96 |
– |
printf("\n%s%s %s %s", il->matname, DSTSUF, |
97 |
– |
ofun[il->flags&IL_LIGHT?MAT_LIGHT:MAT_ILLUM].funame, |
98 |
– |
il->matname); |
99 |
– |
if (il->flags & IL_LIGHT || !strcmp(il->altmat,VOIDID)) |
100 |
– |
printf("\n0"); |
101 |
– |
else |
102 |
– |
printf("\n1 %s", il->altmat); |
103 |
– |
if (il->flags & IL_COLAVG) { |
104 |
– |
cout[0] = il->col[0]; |
105 |
– |
cout[1] = il->col[1]; |
106 |
– |
cout[2] = il->col[2]; |
107 |
– |
} else { |
108 |
– |
cout[0] = cout[1] = cout[2] = brt(il->col); |
109 |
– |
} |
110 |
– |
if (il->flags & IL_LIGHT) |
111 |
– |
printf("\n3 %f %f %f\n", cout[0], cout[1], cout[2]); |
112 |
– |
else |
113 |
– |
printf("\n4 %f %f %f 0\n", cout[0], cout[1], cout[2]); |
114 |
– |
|
115 |
– |
printobj(il->matname, ob); |
116 |
– |
} |
117 |
– |
|
118 |
– |
|
90 |
|
flatout(il, da, n, m, u, v, w) /* write hemispherical distribution */ |
91 |
|
struct illum_args *il; |
92 |
|
float *da; |
160 |
|
printf("\n\t%s il_alt il_azi", FNCFNM); |
161 |
|
printf("\n0\n0\n"); |
162 |
|
il->dfnum++; |
163 |
+ |
} |
164 |
+ |
|
165 |
+ |
|
166 |
+ |
illumout(il, ob) /* print illum object */ |
167 |
+ |
register struct illum_args *il; |
168 |
+ |
OBJREC *ob; |
169 |
+ |
{ |
170 |
+ |
double cout[3]; |
171 |
+ |
|
172 |
+ |
printf("\n%s%s %s %s", il->matname, DSTSUF, |
173 |
+ |
ofun[il->flags&IL_LIGHT?MAT_LIGHT:MAT_ILLUM].funame, |
174 |
+ |
il->matname); |
175 |
+ |
if (il->flags & IL_LIGHT || !strcmp(il->altmat,VOIDID)) |
176 |
+ |
printf("\n0"); |
177 |
+ |
else |
178 |
+ |
printf("\n1 %s", il->altmat); |
179 |
+ |
if (il->flags & IL_COLAVG) { |
180 |
+ |
cout[0] = il->col[0]; |
181 |
+ |
cout[1] = il->col[1]; |
182 |
+ |
cout[2] = il->col[2]; |
183 |
+ |
} else { |
184 |
+ |
cout[0] = cout[1] = cout[2] = brt(il->col); |
185 |
+ |
} |
186 |
+ |
if (il->flags & IL_LIGHT) |
187 |
+ |
printf("\n3 %f %f %f\n", cout[0], cout[1], cout[2]); |
188 |
+ |
else |
189 |
+ |
printf("\n4 %f %f %f 0\n", cout[0], cout[1], cout[2]); |
190 |
+ |
|
191 |
+ |
printobj(il->matname, ob); |
192 |
|
} |
193 |
|
|
194 |
|
|