10 |
|
#include "ray.h" |
11 |
|
#include "otypes.h" |
12 |
|
#include "rtotypes.h" |
13 |
+ |
#include "pmapmat.h" |
14 |
|
|
15 |
|
#ifdef DISPERSE |
16 |
|
#include "source.h" |
51 |
|
|
52 |
|
#define MINCOS 0.997 /* minimum dot product for dispersion */ |
53 |
|
|
54 |
< |
|
55 |
< |
static double |
54 |
> |
static |
55 |
> |
double |
56 |
|
mylog( /* special log for extinction coefficients */ |
57 |
|
double x |
58 |
|
) |
84 |
|
RAY p; |
85 |
|
int i; |
86 |
|
|
87 |
+ |
/* PMAP: skip refracted shadow or ambient ray if accounted for in |
88 |
+ |
photon map */ |
89 |
+ |
if (shadowRayInPmap(r) || ambRayInPmap(r)) |
90 |
+ |
return(1); |
91 |
+ |
|
92 |
|
if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8)) |
93 |
|
objerror(m, USER, "bad arguments"); |
94 |
|
|