From 236a4ea9953a2856c7ef3b0393fc77957d38b6c7 Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Sun, 8 Dec 2024 18:33:23 +0000 Subject: [PATCH] feat(pkgBSDF): Added spectral conversion for MGF materials --- src/cv/pkgBSDF.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cv/pkgBSDF.c b/src/cv/pkgBSDF.c index de2dd7f20..da62cb611 100644 --- a/src/cv/pkgBSDF.c +++ b/src/cv/pkgBSDF.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pkgBSDF.c,v 2.8 2018/12/01 19:45:43 greg Exp $"; +static const char RCSid[] = "$Id: pkgBSDF.c,v 2.9 2024/12/08 18:33:23 greg Exp $"; #endif /* * Take BSDF XML file and generate a referencing Radiance object @@ -63,11 +63,11 @@ geomBSDF(const SDData *bsp) close(fd); /* set up command */ if (do_instance) { - sprintf(command, "mgf2rad %s | oconv -f - > %s.oct", + sprintf(command, "mgf2rad -s %s | oconv -f - > %s.oct", tmpfile, bsp->name); } else { fflush(stdout); - sprintf(command, "mgf2rad %s", tmpfile); + sprintf(command, "mgf2rad -s %s", tmpfile); } if (system(command)) { fprintf(stderr, "Error running: %s\n", command);