1 |
greg |
2.4 |
/* RCSid $Id: pmapamb.h,v 2.3 2015/08/18 18:45:55 greg Exp $ */ |
2 |
greg |
2.1 |
/* |
3 |
|
|
================================================================== |
4 |
|
|
Photon map interface to RADIANCE ambient calculation |
5 |
|
|
|
6 |
|
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
7 |
|
|
(c) Fraunhofer Institute for Solar Energy Systems, |
8 |
rschregle |
2.2 |
(c) Lucerne University of Applied Sciences and Arts, |
9 |
|
|
supported by the Swiss National Science Foundation (SNSF, #147053) |
10 |
|
|
================================================================== |
11 |
greg |
2.1 |
|
12 |
|
|
*/ |
13 |
|
|
|
14 |
|
|
|
15 |
|
|
#ifndef PMAPAMB_H |
16 |
|
|
#define PMAPAMB_H |
17 |
|
|
|
18 |
|
|
#include "pmapdata.h" |
19 |
|
|
|
20 |
|
|
int ambPmap (COLOR aval, RAY *r, int rdepth); |
21 |
|
|
/* Factor irradiance from global photon map into ambient coefficient |
22 |
|
|
* aval; return 1 on success, else 0 (with aval unmodified) */ |
23 |
|
|
|
24 |
|
|
int ambPmapCaustic (COLOR aval, RAY *r, int rdepth); |
25 |
|
|
/* Factor irradiance from caustic photon map into ambient coeffiecient |
26 |
|
|
* aval; return 1 if successful, else 0 (with aval set to zero) */ |
27 |
|
|
#endif |