| 72 |
|
} |
| 73 |
|
else return 2; |
| 74 |
|
|
| 75 |
< |
case 'm': /* max photon search radius coefficient */ |
| 76 |
< |
if (check(3, "f") || (maxDistCoeff = atof(av [1])) <= 0) |
| 75 |
> |
case 'm': /* Fixed max photon search radius */ |
| 76 |
> |
if (check(3, "f") || (maxDistFix = atof(av [1])) <= 0) |
| 77 |
|
error(USER, "invalid max photon search radius coefficient"); |
| 78 |
|
|
| 79 |
|
return 1; |
| 90 |
|
void printPmapDefaults () |
| 91 |
|
/* Print defaults for photon map render options */ |
| 92 |
|
{ |
| 93 |
< |
puts("-ap file [bwidth1 [bwidth2]]\t# photon map"); |
| 94 |
< |
printf("-am %.1f\t\t\t# max photon search radius coeff\n", maxDistCoeff); |
| 93 |
> |
printf("-am %.1f\t\t\t\t# max photon search radius\n", maxDistFix); |
| 94 |
|
} |