ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapcontrib.h
Revision: 2.2
Committed: Fri May 8 13:20:22 2015 UTC (9 years ago) by rschregle
Content type: text/plain
Branch: MAIN
Changes since 2.1: +3 -3 lines
Log Message:
Double-counting bugfix for glow sources (thanks DGM!), revised copyright

File Contents

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