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