From 48314eacf6a3495db27be0a3d98df21a40f2e9bf Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Sun, 8 Dec 2024 17:36:32 +0000 Subject: [PATCH] feat(genBSDF): Added spectral MGF conversion with -C option --- src/util/genBSDF.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/genBSDF.pl b/src/util/genBSDF.pl index febd399b..e19800d8 100644 --- a/src/util/genBSDF.pl +++ b/src/util/genBSDF.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# RCSid $Id: genBSDF.pl,v 2.91 2024/01/05 18:04:28 greg Exp $ +# RCSid $Id: genBSDF.pl,v 2.92 2024/12/08 17:36:32 greg Exp $ # # Compute BSDF based on geometry and material description # @@ -163,7 +163,8 @@ sub userror { ($tensortree==3 && !($doforw && $doback)); # Get scene description if ( $mgfin ) { - system "mgf2rad @ARGV > $radscn"; + my $mgfcv = $docolor ? "mgf2rad -s" : "mgf2rad"; + system "$mgfcv @ARGV > $radscn"; die "Could not load MGF input\n" if ( $? ); } else { system "xform -e @ARGV > $radscn";