diff --git a/src/rt/pmapray.c b/src/rt/pmapray.c index f9a4b234..dbbe1730 100644 --- a/src/rt/pmapray.c +++ b/src/rt/pmapray.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pmapray.c,v 2.7 2016/11/02 22:09:14 greg Exp $"; +static const char RCSid[] = "$Id: pmapray.c,v 2.8 2024/03/22 16:54:16 greg Exp $"; #endif /* @@ -12,10 +12,11 @@ static const char RCSid[] = "$Id: pmapray.c,v 2.7 2016/11/02 22:09:14 greg Exp $ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== - $Id: pmapray.c,v 2.7 2016/11/02 22:09:14 greg Exp $ + $Id: pmapray.c,v 2.8 2024/03/22 16:54:16 greg Exp $ */ +#include "ray.h" #include "pmapray.h" #include "pmap.h" @@ -23,6 +24,9 @@ static const char RCSid[] = "$Id: pmapray.c,v 2.7 2016/11/02 22:09:14 greg Exp $ void ray_init_pmap () /* Interface to ray_init(); init & load photon maps */ { + if (NCSAMP > 3 && photonMapping) + error(USER, "photon-mapping not currently supported for > 3 spectral samples"); + loadPmaps(photonMaps, pmapParams); } diff --git a/src/rt/pmapray.h b/src/rt/pmapray.h index 21b4fc81..7b52d885 100644 --- a/src/rt/pmapray.h +++ b/src/rt/pmapray.h @@ -1,4 +1,4 @@ -/* RCSid $Id: pmapray.h,v 2.6 2016/11/02 22:09:14 greg Exp $ */ +/* RCSid $Id: pmapray.h,v 2.7 2024/03/22 16:54:16 greg Exp $ */ /* ================================================================== @@ -10,12 +10,10 @@ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== - $Id: pmapray.h,v 2.6 2016/11/02 22:09:14 greg Exp $ + $Id: pmapray.h,v 2.7 2024/03/22 16:54:16 greg Exp $ */ - -#include "ray.h" - +/* Include after ray.h */ void ray_init_pmap (); /* Interface to ray_init() and rtmain/rpmain/rvmain; init & load pmaps */