| 50 |
|
} OBSCACHE; /* obstructor cache */ |
| 51 |
|
|
| 52 |
|
typedef struct { |
| 53 |
– |
int sflags; /* source flags */ |
| 53 |
|
FVECT sloc; /* direction or position of source */ |
| 54 |
|
FVECT ss[3]; /* source dimension vectors, U, V, and W */ |
| 55 |
|
float srad; /* maximum source radius */ |
| 71 |
|
#ifdef SHADCACHE |
| 72 |
|
OBSCACHE *obscache; /* obstructor cache */ |
| 73 |
|
#endif |
| 74 |
+ |
int sflags; /* source flags */ |
| 75 |
|
} SRCREC; /* light source */ |
| 76 |
|
|
| 77 |
|
#define MAXSPART 64 /* maximum partitions per source */ |
| 84 |
|
#define snorm ss[SW] /* normal vector for flat source */ |
| 85 |
|
|
| 86 |
|
typedef struct { |
| 87 |
+ |
double dom; /* solid angle of partition */ |
| 88 |
|
int sn; /* source number */ |
| 89 |
|
short np; /* number of partitions */ |
| 90 |
|
short sp; /* this partition number */ |
| 90 |
– |
double dom; /* solid angle of partition */ |
| 91 |
|
unsigned char spt[MAXSPART/2]; /* source partitioning */ |
| 92 |
|
} SRCINDEX; /* source index structure */ |
| 93 |
|
|
| 152 |
|
extern void direct(RAY *r, srcdirf_t *f, void *p); |
| 153 |
|
extern void srcscatter(RAY *r); |
| 154 |
|
extern int m_light(OBJREC *m, RAY *r); |
| 155 |
< |
extern void srcblocker(RAY *r); |
| 155 |
> |
extern void initobscache(int sn); |
| 156 |
> |
extern int srcblocker(RAY *r); |
| 157 |
|
extern int srcblocked(RAY *r); |
| 158 |
|
extern void freeobscache(SRCREC *s); |
| 159 |
|
/* defined in srcsamp.c */ |