We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06168ca commit 7724d4fCopy full SHA for 7724d4f
source/MaterialXView/Viewer.cpp
@@ -848,6 +848,13 @@ void Viewer::createAdvancedSettings(ng::ref<Widget> parent)
848
setShaderInterfaceType(interfaceType);
849
});
850
851
+ ng::ref<ng::CheckBox> optimizeBsdfMixBox = new ng::CheckBox(settingsGroup, "Optimize BSDF Mix");
852
+ optimizeBsdfMixBox->set_checked(_genContext.getOptions().optReplaceBsdfMixWithLinearCombination);
853
+ optimizeBsdfMixBox->set_callback([this](bool enable)
854
+ {
855
+ _genContext.getOptions().optReplaceBsdfMixWithLinearCombination = enable;
856
+ });
857
+
858
ng::ref<ng::Widget> albedoGroup = new Widget(settingsGroup);
859
albedoGroup->set_layout(new ng::BoxLayout(ng::Orientation::Horizontal));
860
new ng::Label(albedoGroup, "Albedo Method:");
0 commit comments