101 |
|
|
102 |
|
for (t = 0; t < NUM_PMAP_TYPES; t++) { |
103 |
|
if (pmaps [t]) |
104 |
< |
savePhotonMap(pmaps [t], pmaps [t] -> fileName, t, argc, argv); |
104 |
> |
savePhotonMap(pmaps [t], pmaps [t] -> fileName, argc, argv); |
105 |
|
} |
106 |
|
} |
107 |
|
|
206 |
|
OBJREC* mat; |
207 |
|
|
208 |
|
if (ray -> rlvl > photonMaxBounce) { |
209 |
+ |
#ifdef PMAP_RUNAWAY_WARN |
210 |
|
error(WARNING, "runaway photon!"); |
211 |
+ |
#endif |
212 |
|
return; |
213 |
|
} |
214 |
< |
|
214 |
> |
|
215 |
|
if (colorAvg(ray -> cext) > FTINY && !photonParticipate(ray)) |
216 |
|
return; |
217 |
|
|
509 |
|
for (srcIdx = 0; srcIdx < nsources; srcIdx++) { |
510 |
|
unsigned portCnt = 0; |
511 |
|
emap.src = source + srcIdx; |
512 |
< |
|
512 |
> |
|
513 |
|
do { |
514 |
|
emap.port = emap.src -> sflags & SDISTANT ? photonPorts + portCnt |
515 |
|
: NULL; |