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 */ |
1578 |
|
objerror(mat, WARNING, "illegal perturbation"); |
1579 |
|
VCOPY(rayOut.rdir, rayIn -> rdir); |
1580 |
|
} |
1582 |
– |
else VCOPY(rayOut.rdir, rayIn -> rdir); |
1581 |
|
} |
1582 |
+ |
else VCOPY(rayOut.rdir, rayIn -> rdir); |
1583 |
|
} |
1584 |
|
else if (xi > (albedo -= prDiff)) { |
1585 |
|
/* Diffuz reflekzion */ |