145 |
|
} |
146 |
|
|
147 |
|
|
148 |
– |
|
148 |
|
static void addPhotons (const RAY *r) |
149 |
|
/* Insert photon hits, where applicable */ |
150 |
|
{ |
151 |
|
if (!r -> rlvl) |
152 |
< |
/* Add direct photon map at primary hitpoint */ |
152 |
> |
/* Add direct photon at primary hitpoint */ |
153 |
|
newPhoton(directPmap, r); |
154 |
|
else { |
155 |
< |
/* Add global or precomputed photon map at indirect hitpoint */ |
155 |
> |
/* Add global or precomputed photon at indirect hitpoint */ |
156 |
|
newPhoton(preCompPmap ? preCompPmap : globalPmap, r); |
157 |
|
|
158 |
|
/* Store caustic photon if specular flag set */ |