305 |
|
e *= atof(cp); |
306 |
|
} |
307 |
|
if (p != NULL) { /* relative setting */ |
308 |
< |
if (bright(p->v) < 1e-25) { |
308 |
> |
if (bright(p->v) < 1e-15) { |
309 |
|
error(COMMAND, "cannot normalize to zero"); |
310 |
|
return; |
311 |
|
} |
398 |
|
extern int ambdiv; |
399 |
|
extern int ambssamp; |
400 |
|
extern int ambounce; |
401 |
< |
extern int directinvis; |
401 |
> |
extern int directvis; |
402 |
|
extern double srcsizerat; |
403 |
|
extern int do_irrad; |
404 |
|
extern double specjitter; |
435 |
|
case 't': /* threshold */ |
436 |
|
getparam(s+2, "direct threshold", 'r', &shadthresh); |
437 |
|
break; |
438 |
< |
case 'i': /* invisibility */ |
439 |
< |
getparam(s+2, "direct invisibility", |
440 |
< |
'b', &directinvis); |
438 |
> |
case 'v': /* visibility */ |
439 |
> |
getparam(s+2, "direct visibility", |
440 |
> |
'b', &directvis); |
441 |
|
break; |
442 |
|
case 's': /* sampling */ |
443 |
|
getparam(s+2, "direct sampling", 'r', &srcsizerat); |