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