Closed marwie closed 1 year ago
I just tried this with another very simple material which yields the same result
<?xml version="1.0"?>
<materialx name="" version="1.38" >
<nodegraph name="needle_shadergraph" >
<!-- MyColor -->
<input name="_MyColor" type="color4" value="0.8113207, 0.5396048, 0.5396048, 1.0" />
<constant name="const__MyColor" type="color4" >
<input name="value" type="color4" interfacename="_MyColor" />
</constant>
<convert name="convert_to_color3" type="color3" >
<input name="in" type="color4" nodename="const__MyColor" />
</convert>
<output name="out" type="color3" nodename="convert_to_color3" />
<convert name="convert_to_color3_1" type="color3" >
<input name="in" type="float" value="5.0" />
</convert>
<multiply name="mult" type="color3" >
<input name="in1" type="color3" nodename="convert_to_color3" />
<input name="in2" type="color3" nodename="convert_to_color3_1" />
</multiply>
<output name="out_1" type="color3" nodename="mult" />
</nodegraph>
<standard_surface name="needle_standard_surface" type="surfaceshader" >
<!-- Base Color(3) -->
<input name="base_color" type="color3" nodegraph="needle_shadergraph" output="out" />
<!-- Emission(3) -->
<input name="emission_color" type="color3" nodegraph="needle_shadergraph" output="out_1" />
<!-- Metallic(1) -->
<input name="metalness" type="float" value="1.0" />
</standard_surface>
<surfacematerial name="Default" type="material" >
<input name="surfaceshader" type="surfaceshader" nodename="needle_standard_surface" />
</surfacematerial>
</materialx>
Hi @marwie , Thanks for catching this right away. There was some code which was supposed to be removed but got missed. Apologies. A patch PR is up now.
Great to hear!
The following material has a nodegraph with an vector4 input. When changing the values of the input it seems to be not evaluating the nodegraph anymore See video below. This is the viewer built from 2d12c1687887f793609133cadf192bf4b29e9502
https://github.com/AcademySoftwareFoundation/MaterialX/assets/5083203/24d57928-6b78-4f5c-b409-6276167d7dc8