13 |
|
#include "otypes.h" |
14 |
|
|
15 |
|
/* illum flags */ |
16 |
< |
#define IL_FLAT 0x1 /* flat surface */ |
17 |
< |
#define IL_LIGHT 0x2 /* light rather than illum */ |
18 |
< |
#define IL_COLDST 0x4 /* colored distribution */ |
19 |
< |
#define IL_COLAVG 0x8 /* compute average color */ |
20 |
< |
#define IL_DATCLB 0x10 /* OK to clobber data file */ |
16 |
> |
#define IL_LIGHT 0x1 /* light rather than illum */ |
17 |
> |
#define IL_COLDST 0x2 /* use color distribution */ |
18 |
> |
#define IL_COLAVG 0x4 /* use average color */ |
19 |
> |
#define IL_DATCLB 0x8 /* OK to clobber data file */ |
20 |
|
|
21 |
|
struct illum_args { |
22 |
|
int flags; /* flags from list above */ |
24 |
|
char datafile[MAXSTR]; /* distribution data file name */ |
25 |
|
int dfnum; /* data file number */ |
26 |
|
char altmat[MAXSTR]; /* alternate material name */ |
27 |
+ |
int sampdens; /* point sample density */ |
28 |
|
int nsamps; /* # of samples in each direction */ |
29 |
< |
int nalt, nazi; /* # of altitude and azimuth angles */ |
30 |
< |
FVECT orient; /* coordinate system orientation */ |
29 |
> |
float col[3]; /* average color */ |
30 |
|
}; /* illum options */ |
31 |
|
|
32 |
|
struct rtproc { |
33 |
|
int pd[3]; /* rtrace pipe descriptors */ |
34 |
|
float *buf; /* rtrace i/o buffer */ |
35 |
|
int bsiz; /* maximum rays for rtrace buffer */ |
36 |
+ |
float **dest; /* destination for each ray result */ |
37 |
|
int nrays; /* current length of rtrace buffer */ |
38 |
|
}; /* rtrace process */ |