47 |
|
*/ |
48 |
|
|
49 |
|
/* |
50 |
< |
* Virtual source materials must support the following functions: |
50 |
> |
* Virtual source materials must define the following. |
51 |
|
* |
52 |
|
* vproj(pm, op, sp, i) Compute i'th virtual projection |
53 |
|
* of source sp in object op and assign |
80 |
|
extern int nsources; /* the number of sources */ |
81 |
|
|
82 |
|
extern double srcray(); /* ray to source */ |
83 |
+ |
extern int srcvalue(); /* compute source value w/o shadows */ |
84 |
|
|
85 |
+ |
extern double intercircle(); /* intersect two circles */ |
86 |
+ |
|
87 |
|
extern SPOT *makespot(); /* make spotlight */ |
88 |
|
|
86 |
– |
extern SRCREC *newsource(); /* allocate new source */ |
87 |
– |
|
89 |
|
extern double dstrsrc; /* source distribution amount */ |
90 |
|
extern double shadthresh; /* relative shadow threshold */ |
91 |
|
extern double shadcert; /* shadow testing certainty */ |
92 |
|
extern int directrelay; /* maximum number of source relays */ |
93 |
+ |
extern int vspretest; /* virtual source pretest density */ |