1 |
+ |
#ifndef lint |
2 |
+ |
static const char RCSid[] = "$Id$"; |
3 |
+ |
#endif |
4 |
+ |
|
5 |
|
/* |
6 |
|
================================================================== |
7 |
|
Photon map interface to RADIANCE ambient calculation |
30 |
|
PhotonMap *pmap = contribPhotonMapping ? contribPmap |
31 |
|
: preCompPmap ? preCompPmap |
32 |
|
: globalPmap; |
33 |
< |
|
33 |
> |
|
34 |
|
/* Get photon irradiance either via 1 ambient bounce (final |
35 |
|
* gather) if ambounce > 0, or directly if ambounce < 0. */ |
36 |
|
if (pmap && (rdepth || ambounce < 0)) { |
71 |
|
multcolor(r -> rcoef, aval); |
72 |
|
|
73 |
|
/* Set caustic flag and get photon irradiance via callback */ |
74 |
< |
pmap -> lookupFlags = PMAP_CAUST_BIT; |
74 |
> |
pmap -> lookupCaustic = 1; |
75 |
|
(pmap -> lookup)(pmap, r, photonIrrad); |
76 |
|
|
77 |
|
/* Factor irradiance into ambient value and restore ray coeficient */ |