1 |
rschregle |
2.5 |
/* RCSid $Id: pmapcontrib.h,v 4.12.1.1 2015/10/30 20:12:57 taschreg Exp taschreg $ */ |
2 |
|
|
|
3 |
greg |
2.1 |
/* |
4 |
|
|
================================================================== |
5 |
|
|
Photon map support for light source contributions |
6 |
|
|
|
7 |
|
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
8 |
rschregle |
2.2 |
(c) Lucerne University of Applied Sciences and Arts, |
9 |
|
|
supported by the Swiss National Science Foundation (SNSF, #147053) |
10 |
greg |
2.1 |
================================================================== |
11 |
|
|
|
12 |
rschregle |
2.5 |
$Id: pmapcontrib.h,v 4.12.1.1 2015/10/30 20:12:57 taschreg Exp taschreg $ |
13 |
greg |
2.1 |
*/ |
14 |
|
|
|
15 |
rschregle |
2.5 |
#ifndef PMAPCONTRIB_H |
16 |
|
|
#define PMAPCONTRIB_H |
17 |
greg |
2.1 |
|
18 |
|
|
#include "pmapdata.h" |
19 |
|
|
|
20 |
|
|
void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib); |
21 |
|
|
/* Set up photon map contributions (interface to rcmain.c) */ |
22 |
|
|
|
23 |
rschregle |
2.5 |
void distribPhotonContrib (PhotonMap *pmap, unsigned numProc); |
24 |
greg |
2.1 |
/* Emit photons from light sources with tagged contributions, and |
25 |
|
|
* build photon map */ |
26 |
|
|
|
27 |
|
|
void photonContrib (PhotonMap *pmap, RAY *ray, COLOR irrad); |
28 |
|
|
/* Accumulate light source contributions in pmap -> srcMods from |
29 |
|
|
* photons, and return cumulative irradiance from density esimate */ |
30 |
|
|
|
31 |
|
|
#endif |