1 |
/* RCSid $Id: pmapcontrib.h,v 4.12.1.1 2015/10/30 20:12:57 taschreg Exp taschreg $ */ |
2 |
|
3 |
/* |
4 |
================================================================== |
5 |
Photon map support for light source contributions |
6 |
|
7 |
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
8 |
(c) Lucerne University of Applied Sciences and Arts, |
9 |
supported by the Swiss National Science Foundation (SNSF, #147053) |
10 |
================================================================== |
11 |
|
12 |
$Id: pmapcontrib.h,v 4.12.1.1 2015/10/30 20:12:57 taschreg Exp taschreg $ |
13 |
*/ |
14 |
|
15 |
#ifndef PMAPCONTRIB_H |
16 |
#define PMAPCONTRIB_H |
17 |
|
18 |
#include "pmapdata.h" |
19 |
|
20 |
void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib); |
21 |
/* Set up photon map contributions (interface to rcmain.c) */ |
22 |
|
23 |
void distribPhotonContrib (PhotonMap *pmap, unsigned numProc); |
24 |
/* 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 |