1 |
/* |
2 |
================================================================== |
3 |
Photon map support for light source contributions |
4 |
|
5 |
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
6 |
(c) Lucerne University of Applied Sciences and Arts, |
7 |
supported by the Swiss National Science Foundation (SNSF, #147053) |
8 |
================================================================== |
9 |
|
10 |
$Id: pmapcontrib.h,v 2.1 2015/02/24 19:39:26 greg Exp $ |
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 |