4 |
|
|
5 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
6 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
7 |
< |
Lucerne University of Applied Sciences & Arts |
7 |
> |
(c) Lucerne University of Applied Sciences and Arts, |
8 |
> |
supported by the Swiss National Science Foundation (SNSF, #147053) |
9 |
|
================================================================== |
10 |
|
|
11 |
|
$Id$ |
13 |
|
|
14 |
|
|
15 |
|
|
16 |
< |
#include <stdlib.h> |
16 |
> |
#include "ray.h" |
17 |
|
#include "pmapparm.h" |
17 |
– |
#include "rtio.h" |
18 |
– |
#include "rterror.h" |
18 |
|
|
19 |
|
|
20 |
|
|
33 |
|
case 'a': |
34 |
|
switch (av [0][2]) { |
35 |
|
case 'p': /* photon map */ |
36 |
+ |
/* Asking for photon map, ergo ambounce != 0 */ |
37 |
+ |
ambounce += (ambounce == 0); |
38 |
|
if (!check(3, "s")) { |
39 |
|
/* File -> assume bwidth = 1 or precomputed pmap */ |
40 |
|
if (++t >= NUM_PMAP_TYPES) |