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 |
|
*/ |
58 |
|
} EmissionMap; |
59 |
|
|
60 |
|
|
61 |
+ |
|
62 |
+ |
/* Photon port flags (orientation relative to surface normal): |
63 |
+ |
* Forward, backward, both (bidirectional). */ |
64 |
+ |
#define PMAP_PORTFWD 1 |
65 |
+ |
#define PMAP_PORTBWD 2 |
66 |
+ |
#define PMAP_PORTBI (PMAP_PORTFWD | PMAP_PORTBWD) |
67 |
+ |
|
68 |
|
|
69 |
< |
/* Photon port list for emission from geometry en lieu of light sources */ |
69 |
> |
/* Photon ports for emission from geometry en lieu of light sources */ |
70 |
> |
extern char *photonPortList [MAXSET + 1]; |
71 |
|
extern SRCREC *photonPorts; |
72 |
|
extern unsigned numPhotonPorts; |
73 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
< |
void getPhotonPorts (); |
82 |
< |
/* Find geometry declared as photon ports */ |
81 |
> |
void getPhotonPorts (char **portList); |
82 |
> |
/* Find geometry declared as photon ports from modifiers in portList */ |
83 |
|
|
84 |
|
void initPhotonEmissionFuncs (); |
85 |
|
/* Init photonPartition[] and photonOrigin[] dispatch tables with source |