| 1 |
|
/* RCSid $Id$ */ |
| 2 |
|
|
| 3 |
|
/* |
| 4 |
< |
================================================================== |
| 4 |
> |
====================================================================== |
| 5 |
|
Photon map support routines for emission from light sources |
| 6 |
|
|
| 7 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
| 8 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
| 9 |
+ |
supported by the German Research Foundation (DFG) |
| 10 |
+ |
under the FARESYS project. |
| 11 |
|
(c) Lucerne University of Applied Sciences and Arts, |
| 12 |
< |
supported by the Swiss National Science Foundation (SNSF, #147053) |
| 13 |
< |
================================================================== |
| 12 |
> |
supported by the Swiss National Science Foundation (SNSF #147053). |
| 13 |
> |
(c) Tokyo University of Science, |
| 14 |
> |
supported by the JSPS KAKENHI Grant Number JP19KK0115. |
| 15 |
> |
====================================================================== |
| 16 |
|
|
| 17 |
|
$Id$ |
| 18 |
|
*/ |
| 25 |
|
#include "ray.h" |
| 26 |
|
#include "source.h" |
| 27 |
|
|
| 28 |
+ |
#ifdef __cplusplus |
| 29 |
+ |
extern "C" { |
| 30 |
+ |
#endif |
| 31 |
|
|
| 32 |
|
|
| 33 |
|
/* Data structures for photon emission */ |
| 61 |
|
} EmissionMap; |
| 62 |
|
|
| 63 |
|
|
| 64 |
+ |
|
| 65 |
+ |
/* Photon port flags (orientation relative to surface normal): |
| 66 |
+ |
* Forward, backward, both (bidirectional). */ |
| 67 |
+ |
#define PMAP_PORTFWD 1 |
| 68 |
+ |
#define PMAP_PORTBWD 2 |
| 69 |
+ |
#define PMAP_PORTBI (PMAP_PORTFWD | PMAP_PORTBWD) |
| 70 |
+ |
|
| 71 |
|
|
| 72 |
|
/* Photon ports for emission from geometry en lieu of light sources */ |
| 73 |
|
extern char *photonPortList [MAXSET + 1]; |
| 104 |
|
|
| 105 |
|
void inscatterVolumePmap (RAY *r, COLOR inscatter); |
| 106 |
|
/* Add inscattering from volume photon map; interface to srcscatter() */ |
| 107 |
+ |
|
| 108 |
+ |
#ifdef __cplusplus |
| 109 |
+ |
} |
| 110 |
+ |
#endif |
| 111 |
|
|
| 112 |
|
#endif |