33 |
|
} SRCREC; /* light source */ |
34 |
|
|
35 |
|
typedef struct { |
36 |
– |
int sno; /* source number */ |
36 |
|
FVECT dir; /* source direction */ |
37 |
|
float dom; /* domega for source */ |
39 |
– |
float brt; /* brightness (for comparison) */ |
38 |
|
COLOR val; /* contribution */ |
39 |
|
} CONTRIB; /* direct contribution */ |
40 |
+ |
|
41 |
+ |
typedef struct { |
42 |
+ |
int sno; /* source number */ |
43 |
+ |
float brt; /* brightness (for comparison) */ |
44 |
+ |
} CNTPTR; /* contribution pointer */ |
45 |
|
|
46 |
|
extern SRCREC *source; /* our source list */ |
47 |
|
extern int nsources; /* the number of sources */ |