ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/rad2mgf.c
(Generate patch)

Comparing ray/src/cv/rad2mgf.c (file contents):
Revision 2.24 by greg, Wed Dec 28 18:35:42 2005 UTC vs.
Revision 2.26 by greg, Tue Oct 25 23:23:17 2011 UTC

# 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]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines