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 |
|
|
53 |
– |
|
54 |
|
static double |
55 |
|
mylog( /* special log for extinction coefficients */ |
56 |
|
double x |
83 |
|
RAY p; |
84 |
|
int i; |
85 |
|
|
86 |
+ |
/* PMAP: skip refracted shadow or ambient ray if accounted for in |
87 |
+ |
photon map */ |
88 |
+ |
if (shadowRayInPmap(r)) |
89 |
+ |
return(1); |
90 |
+ |
|
91 |
|
if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8)) |
92 |
|
objerror(m, USER, "bad arguments"); |
93 |
|
|