1 |
/* |
2 |
================================================================== |
3 |
Photon map support for light source contributions |
4 |
|
5 |
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
6 |
(c) Fraunhofer Institute for Solar Energy Systems, |
7 |
Lucerne University of Applied Sciences & Arts |
8 |
================================================================== |
9 |
|
10 |
$Id: pmapcontrib.h,v 4.10 2015/01/29 13:10:29 taschreg Exp taschreg $ |
11 |
*/ |
12 |
|
13 |
#ifndef PMAP_CONTRIB_H |
14 |
#define PMAP_CONTRIB_H |
15 |
|
16 |
#include "pmapdata.h" |
17 |
|
18 |
void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib); |
19 |
/* Set up photon map contributions (interface to rcmain.c) */ |
20 |
|
21 |
void distribPhotonContrib (PhotonMap *pmap); |
22 |
/* Emit photons from light sources with tagged contributions, and |
23 |
* build photon map */ |
24 |
|
25 |
void photonContrib (PhotonMap *pmap, RAY *ray, COLOR irrad); |
26 |
/* Accumulate light source contributions in pmap -> srcMods from |
27 |
* photons, and return cumulative irradiance from density esimate */ |
28 |
|
29 |
#endif |