Skip to content

Commit

Permalink
feat(genBSDF): Added spectral MGF conversion with -C option
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Dec 8, 2024
1 parent de3dd70 commit 48314ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/genBSDF.pl
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 48314ea

Please sign in to comment.