Open numega opened 3 years ago
Filed as internal issue #USD-6669
Is this because the add
node needs to be in a nodegraph
?
I've had some success with materialx files like this:
<?xml version="1.0"?>
<materialx version="1.38">
<nodegraph name="ng">
<add name="add1" type="color3">
<input name="in1" type="color3" value="0, 0.5, 0"/>
<input name="in2" type="color3" value="0, 0.5, 0"/>
</add>
<output name="out_color" type="color3" nodename="add1" />
</nodegraph>
<UsdPreviewSurface name="SR_default" type="surfaceshader">
<input name="diffuseColor" type="color3" nodegraph="ng" output="out_color"/>
</UsdPreviewSurface>
<surfacematerial name="USD_Default" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_default"/>
</surfacematerial>
</materialx>
Description of Issue
The add node in the following MaterialX text doesn't show up in the USD stage. I've verified that it works in MaterialXView though.
Steps to Reproduce
System Information (OS, Hardware)
macOS 11, MacBookPro (15-inch, 2019)
Package Versions
USD 21.05
Build Flags
./build_scripts/build_usd.py --materialx