| 68 |
|
|
| 69 |
|
/* rtrace command and defaults */ |
| 70 |
|
char *rtargv[256] = { "rtrace", "-dj", ".5", "-dr", "3", |
| 71 |
< |
"-ab", "1", "-ad", "128", "-lr", "-10", }; |
| 72 |
< |
int rtargc = 11; |
| 71 |
> |
"-ab", "1", "-ad", "128", }; |
| 72 |
> |
int rtargc = 9; |
| 73 |
|
/* overriding rtrace options */ |
| 74 |
|
char *myrtopts[] = { "-o~~TmWdp", "-h-", "-x", "1", "-y", "0", |
| 75 |
|
"-dt", "0", "-as", "0", "-aa", "0", NULL }; |
| 706 |
|
MODCONT *mp; |
| 707 |
|
/* output modifiers in order */ |
| 708 |
|
for (i = 0; i < nmods; i++) { |
| 709 |
+ |
FILE *fp; |
| 710 |
|
mp = (MODCONT *)lu_find(&modconttab,modname[i])->data; |
| 711 |
< |
for (j = 0; j < mp->nbins; j++) |
| 712 |
< |
putcontrib(mp->cbin[j], |
| 711 |
> |
fp = getofile(mp->outspec, mp->modname, 0); |
| 712 |
> |
putcontrib(mp->cbin[0], fp); |
| 713 |
> |
if (mp->nbins > 3 && /* minor optimization */ |
| 714 |
> |
fp == getofile(mp->outspec, mp->modname, 1)) |
| 715 |
> |
for (j = 1; j < mp->nbins; j++) |
| 716 |
> |
putcontrib(mp->cbin[j], fp); |
| 717 |
> |
else |
| 718 |
> |
for (j = 1; j < mp->nbins; j++) |
| 719 |
> |
putcontrib(mp->cbin[j], |
| 720 |
|
getofile(mp->outspec, mp->modname, j)); |
| 721 |
|
/* clear for next ray tree */ |
| 722 |
|
memset(mp->cbin, 0, sizeof(DCOLOR)*mp->nbins); |