# | Line 16 | Line 16 | static const char RCSid[] = "$Id$"; | |
---|---|---|
16 | */ | |
17 | ||
18 | ||
19 | + | #include "ray.h" |
20 | #include "pmapray.h" | |
21 | #include "pmap.h" | |
22 | ||
# | Line 23 | Line 24 | static const char RCSid[] = "$Id$"; | |
24 | void ray_init_pmap () | |
25 | /* Interface to ray_init(); init & load photon maps */ | |
26 | { | |
27 | + | if (NCSAMP > 3 && photonMapping) |
28 | + | error(USER, "photon-mapping not currently supported for > 3 spectral samples"); |
29 | + | |
30 | loadPmaps(photonMaps, pmapParams); | |
31 | } | |
32 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |