| 68 |
|
extern void multambient(COLOR aval, RAY *r, FVECT nrm); |
| 69 |
|
extern void ambdone(void); |
| 70 |
|
extern void ambnotify(OBJECT obj); |
| 71 |
– |
extern double sumambient(COLOR acol, RAY *r, FVECT rn, int al, |
| 72 |
– |
AMBTREE *at, FVECT c0, double s); |
| 73 |
– |
extern int makeambient(COLOR acol, RAY *r, FVECT rn, int al); |
| 74 |
– |
extern void extambient(COLOR cr, AMBVAL *ap, FVECT pv, FVECT nv); |
| 71 |
|
extern int ambsync(void); |
| 72 |
|
/* defined in ambcomp.c */ |
| 73 |
|
extern int doambient(COLOR acol, RAY *r, double wt, |
| 74 |
|
FVECT uv[2], float rad[2], |
| 75 |
|
float gpos[2], float gdir[2]); |
| 80 |
– |
extern void inithemi(AMBHEMI *hp, COLOR ac, RAY *r, double wt); |
| 81 |
– |
extern int divsample(AMBSAMP *dp, AMBHEMI *h, RAY *r); |
| 82 |
– |
extern void comperrs(AMBSAMP *da, AMBHEMI *hp); |
| 83 |
– |
extern void posgradient(FVECT gv, AMBSAMP *da, AMBHEMI *hp); |
| 84 |
– |
extern void dirgradient(FVECT gv, AMBSAMP *da, AMBHEMI *hp); |
| 76 |
|
/* defined in ambio.c */ |
| 77 |
|
extern void putambmagic(FILE *fp); |
| 78 |
|
extern int hasambmagic(FILE *fp); |
| 79 |
|
extern int writambval(AMBVAL *av, FILE *fp); |
| 89 |
– |
extern int ambvalOK(AMBVAL *av); |
| 80 |
|
extern int readambval(AMBVAL *av, FILE *fp); |
| 81 |
+ |
extern int ambvalOK(AMBVAL *av); |
| 82 |
|
|
| 83 |
|
#else /* ! NEWAMB */ |
| 84 |
|
|
| 138 |
|
extern void multambient(COLOR aval, RAY *r, FVECT nrm); |
| 139 |
|
extern void ambdone(void); |
| 140 |
|
extern void ambnotify(OBJECT obj); |
| 150 |
– |
extern double sumambient(COLOR acol, RAY *r, FVECT rn, int al, |
| 151 |
– |
AMBTREE *at, FVECT c0, double s); |
| 152 |
– |
extern double makeambient(COLOR acol, RAY *r, FVECT rn, int al); |
| 153 |
– |
extern void extambient(COLOR cr, AMBVAL *ap, FVECT pv, FVECT nv); |
| 141 |
|
extern int ambsync(void); |
| 142 |
|
/* defined in ambcomp.c */ |
| 143 |
|
extern double doambient(COLOR acol, RAY *r, double wt, |