# | Line 129 | Line 129 | rad2mgf( /* convert a Radiance file to MGF */ | |
---|---|---|
129 | char *inp | |
130 | ) | |
131 | { | |
132 | + | char buf[512]; |
133 | char mod[128], typ[32], id[128], alias[128]; | |
134 | FUNARGS fa; | |
135 | register FILE *fp; | |
# | Line 845 | Line 846 | o_trans( /* convert a trans material */ | |
846 | COLOR cxyz, rrgb; | |
847 | double rough, trans, tspec, d; | |
848 | ||
849 | < | if (typ[4] == '2') { /* trans2 */ |
849 | > | if (typ[5] == '2') { /* trans2 */ |
850 | if (fa->nfargs != 8) | |
851 | return(-1); | |
852 | rough = .5*(fa->farg[4] + fa->farg[5]); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |