# | Line 10 | Line 10 | static const char RCSid[] = "$Id$"; | |
---|---|---|
10 | #include "copyright.h" | |
11 | ||
12 | #include "ray.h" | |
13 | – | |
13 | #include "ambient.h" | |
15 | – | |
14 | #include "random.h" | |
15 | ||
16 | + | #ifdef NEWAMB |
17 | ||
18 | + | #else /* ! NEWAMB */ |
19 | + | |
20 | + | |
21 | void | |
22 | inithemi( /* initialize sampling hemisphere */ | |
23 | AMBHEMI *hp, | |
# | Line 156 | Line 158 | doambient( /* compute ambient component */ | |
158 | FVECT dg | |
159 | ) | |
160 | { | |
161 | < | double b, d; |
161 | > | double b, d=0; |
162 | AMBHEMI hemi; | |
163 | AMBSAMP *div; | |
164 | AMBSAMP dnew; | |
# | Line 434 | Line 436 | dirgradient( /* compute direction gradient */ | |
436 | for (i = 0; i < 3; i++) | |
437 | gv[i] = xd*hp->ux[i] + yd*hp->uy[i]; | |
438 | } | |
439 | + | |
440 | + | #endif /* ! NEWAMB */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |