Files
2026-01-09 23:21:38 +00:00

200 lines
11 KiB
XML
Executable File

<?xml version="1.0"?>
<materialx version="1.39">
<!--
Basic switch conditional function tests each test is in a separate graph for each variation in input type.
-->
<nodegraph name="switch_float">
<switch name="switch1" type="float">
<input name="in1" type="float" value="0.0000" />
<input name="in2" type="float" value="0.3000" />
<input name="in3" type="float" value="0.5000" />
<input name="in4" type="float" value="0.7000" />
<input name="in5" type="float" value="1.0000" />
<input name="which" type="float" value="0.0000" />
</switch>
<output name="out" type="float" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_color3">
<switch name="switch1" type="color3">
<input name="in1" type="color3" value="0.0, 0.0, 0.0" />
<input name="in2" type="color3" value="0.3000, 0.3000, 0.3000" />
<input name="in3" type="color3" value="0.5000, 0.5000, 0.5000" />
<input name="in4" type="color3" value="0.7000, 0.7000, 0.7000" />
<input name="in5" type="color3" value="1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="2.0000" />
</switch>
<output name="out" type="color3" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_color4">
<switch name="switch1" type="color4">
<input name="in1" type="color4" value="0.0, 0.0, 0.0, 0.0000" />
<input name="in2" type="color4" value="0.3000, 0.3000, 0.3000, 0.5000" />
<input name="in3" type="color4" value="0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="color4" value="0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="color4" value="1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="3.0000" />
</switch>
<output name="out" type="color4" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector2">
<switch name="switch1" type="vector2">
<input name="in1" type="vector2" value="0.0, 0.0" />
<input name="in2" type="vector2" value="0.3000, 0.3000" />
<input name="in3" type="vector2" value="0.5000, 0.5000" />
<input name="in4" type="vector2" value="0.7000, 0.7000" />
<input name="in5" type="vector2" value="1.0000, 1.0000" />
<input name="which" type="float" value="1.0000" />
</switch>
<output name="out" type="vector2" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector3">
<switch name="switch1" type="vector3">
<input name="in1" type="vector3" value="0.0, 0.0, 0.0" />
<input name="in2" type="vector3" value="0.3000, 0.3000, 0.3000" />
<input name="in3" type="vector3" value="0.5000, 0.5000, 0.5000" />
<input name="in4" type="vector3" value="0.7000, 0.7000, 0.7000" />
<input name="in5" type="vector3" value="1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="2.0000" />
</switch>
<output name="out" type="vector3" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector4">
<switch name="switch1" type="vector4">
<input name="in1" type="vector4" value="0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="vector4" value="0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="vector4" value="0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="vector4" value="0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="vector4" value="1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="3.0000" />
</switch>
<output name="out" type="vector4" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_matrix33">
<switch name="switch1" type="matrix33">
<input name="in1" type="matrix33" value="0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="matrix33" value="0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="matrix33" value="0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="matrix33" value="0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="matrix33" value="1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="3.0000" />
</switch>
<output name="out" type="matrix33" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_matrix44">
<switch name="switch1" type="matrix44">
<input name="in1" type="matrix44" value="0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="matrix44" value="0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="matrix44" value="0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="matrix44" value="0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="matrix44" value="1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="float" value="3.0000" />
</switch>
<output name="out" type="matrix44" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_floatI">
<switch name="switch1" type="float">
<input name="in1" type="float" value="0.0" />
<input name="in2" type="float" value="0.3000" />
<input name="in3" type="float" value="0.5000" />
<input name="in4" type="float" value="0.7000" />
<input name="in5" type="float" value="1.0000" />
<input name="which" type="integer" value="0" />
</switch>
<output name="out" type="float" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_color3I">
<switch name="switch1" type="color3">
<input name="in1" type="color3" value="0.0, 0.0, 0.0" />
<input name="in2" type="color3" value="0.3000, 0.3000, 0.3000" />
<input name="in3" type="color3" value="0.5000, 0.5000, 0.5000" />
<input name="in4" type="color3" value="0.7000, 0.7000, 0.7000" />
<input name="in5" type="color3" value="1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="2" />
</switch>
<output name="out" type="color3" nodename="switch1" />
</nodegraph>
<nodegraph name="swicth_color4I">
<switch name="switch1" type="color4">
<input name="in1" type="color4" value="0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="color4" value="0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="color4" value="0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="color4" value="0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="color4" value="1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="3" />
</switch>
<output name="out" type="color4" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector2I">
<switch name="switch1" type="vector2">
<input name="in1" type="vector2" value="0.0, 0.0" />
<input name="in2" type="vector2" value="0.3000, 0.3000" />
<input name="in3" type="vector2" value="0.5000, 0.5000" />
<input name="in4" type="vector2" value="0.7000, 0.7000" />
<input name="in5" type="vector2" value="1.0000, 1.0000" />
<input name="which" type="integer" value="1" />
</switch>
<output name="out" type="vector2" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector3I">
<switch name="switch1" type="vector3">
<input name="in1" type="vector3" value="0.0, 0.0, 0.0" />
<input name="in2" type="vector3" value="0.3000, 0.3000, 0.3000" />
<input name="in3" type="vector3" value="0.5000, 0.5000, 0.5000" />
<input name="in4" type="vector3" value="0.7000, 0.7000, 0.7000" />
<input name="in5" type="vector3" value="1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="2" />
</switch>
<output name="out" type="vector3" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector4I">
<switch name="switch1" type="vector4">
<input name="in1" type="vector4" value="0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="vector4" value="0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="vector4" value="0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="vector4" value="0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="vector4" value="1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="3" />
</switch>
<output name="out" type="vector4" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_matrix33I">
<switch name="switch1" type="matrix33">
<input name="in1" type="matrix33" value="0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="matrix33" value="0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="matrix33" value="0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="matrix33" value="0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="matrix33" value="1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="2" />
</switch>
<output name="out" type="matrix33" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_matrix44I">
<switch name="switch1" type="matrix44">
<input name="in1" type="matrix44" value="0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0" />
<input name="in2" type="matrix44" value="0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000, 0.3000" />
<input name="in3" type="matrix44" value="0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000, 0.5000" />
<input name="in4" type="matrix44" value="0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000, 0.7000" />
<input name="in5" type="matrix44" value="1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000" />
<input name="which" type="integer" value="2" />
</switch>
<output name="out" type="matrix44" nodename="switch1" />
</nodegraph>
<nodegraph name="switch_vector3_geometric">
<tangent name="tangent1" type="vector3" />
<bitangent name="bitangent1" type="vector3" />
<texcoord name="texcoord1" type="vector2" />
<splitlr name="splitlr1" type="float">
<input name="valuel" type="float" value="0.0" />
<input name="valuer" type="float" value="1.0" />
<input name="center" type="float" value="0.5" />
<input name="texcoord" type="vector2" nodename="texcoord1" />
</splitlr>
<ifgreater name="ifgreater1" type="vector3">
<input name="value1" type="float" nodename="splitlr1" />
<input name="in1" type="vector3" nodename="tangent1" />
<input name="in2" type="vector3" nodename="bitangent1" />
</ifgreater>
<output name="out" type="vector3" nodename="ifgreater1" />
</nodegraph>
</materialx>