28 |
|
float prox; /* proximity */ |
29 |
|
SPOT *s; /* spot */ |
30 |
|
} sl; /* localized source information */ |
31 |
+ |
long ntests, nhits; /* shadow tests and hits */ |
32 |
|
OBJREC *so; /* source object */ |
33 |
< |
} SOURCE; /* light source */ |
33 |
> |
} SRCREC; /* light source */ |
34 |
|
|
35 |
< |
#define MAXSOURCE 512 /* maximum # of sources */ |
35 |
> |
typedef struct { |
36 |
> |
int sno; /* source number */ |
37 |
> |
FVECT dir; /* source direction */ |
38 |
> |
float dom; /* domega for source */ |
39 |
> |
float brt; /* brightness (for comparison) */ |
40 |
> |
COLOR val; /* contribution */ |
41 |
> |
} CONTRIB; /* direct contribution */ |
42 |
|
|
43 |
< |
extern SOURCE srcval[MAXSOURCE]; /* our source list */ |
43 |
> |
extern SRCREC *source; /* our source list */ |
44 |
|
extern int nsources; /* the number of sources */ |
45 |
|
|
46 |
< |
extern double srcray(); /* ray to source */ |
46 |
> |
extern double srcray(); /* ray to source */ |
47 |
|
|
48 |
|
extern SPOT *makespot(); /* make spotlight */ |