| # | 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 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 (old) |
| > | Changed lines (new) |