WIP: MaterialX addon #104594
@ -1,93 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<materialx version="1.38" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:include href="stdlib/stdlib_defs.mtlx" />
|
||||
<xi:include href="stdlib/stdlib_ng.mtlx" />
|
||||
<nodedef name="ND_algclamp_float" node="algclamp">
|
||||
<output name="out" type="float" />
|
||||
<input name="val" type="float" value="0" uiname="Value" />
|
||||
<input name="i_min" type="float" value="0" uiname="Min" />
|
||||
<input name="i_max" type="float" value="1" uiname="Max" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algclamp_vector2" node="algclamp">
|
||||
<output name="out" type="vector2" />
|
||||
<input name="val" type="vector2" value="0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector2" value="0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector2" value="1, 1" uiname="Max" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algclamp_vector3" node="algclamp">
|
||||
<output name="out" type="vector3" />
|
||||
<input name="val" type="vector3" value="0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector3" value="0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector3" value="1, 1, 1" uiname="Max" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algclamp_vector4" node="algclamp">
|
||||
<output name="out" type="vector4" />
|
||||
<input name="val" type="vector4" value="0, 0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector4" value="0, 0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector4" value="1, 1, 1, 1" uiname="Max" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algclamp_color3" node="algclamp">
|
||||
<output name="out" type="color3" />
|
||||
<input name="val" type="color3" value="0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="color3" value="0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="color3" value="1, 1, 1" uiname="Max" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_alglevels_float" node="alglevels">
|
||||
<output name="out" type="float" />
|
||||
<input name="pixel" type="float" value="0" uiname="Value" />
|
||||
<input name="i_min" type="float" value="0" uiname="Min" />
|
||||
<input name="i_max" type="float" value="1" uiname="Max" />
|
||||
<input name="i_gamma" type="float" value="1" uiname="Gamma" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_alglevels_vector2" node="alglevels">
|
||||
<output name="out" type="vector2" />
|
||||
<input name="pixel" type="vector2" value="0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector2" value="0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector2" value="1, 1" uiname="Max" />
|
||||
<input name="i_gamma" type="float" value="1" uiname="Gamma" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_alglevels_vector3" node="alglevels">
|
||||
<output name="out" type="vector3" />
|
||||
<input name="pixel" type="vector3" value="0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector3" value="0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector3" value="1, 1, 1" uiname="Max" />
|
||||
<input name="i_gamma" type="float" value="1" uiname="Gamma" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_alglevels_vector4" node="alglevels">
|
||||
<output name="out" type="vector4" />
|
||||
<input name="pixel" type="vector4" value="0, 0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="vector4" value="0, 0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="vector4" value="1, 1, 1, 1" uiname="Max" />
|
||||
<input name="i_gamma" type="float" value="1" uiname="Gamma" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_alglevels_color3" node="alglevels">
|
||||
<output name="out" type="color3" />
|
||||
<input name="pixel" type="color3" value="0, 0, 0" uiname="Value" />
|
||||
<input name="i_min" type="color3" value="0, 0, 0" uiname="Min" />
|
||||
<input name="i_max" type="color3" value="1, 1, 1" uiname="Max" />
|
||||
<input name="i_gamma" type="float" value="1" uiname="Gamma" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algdot_color3" node="algdot">
|
||||
<output name="out" type="float" />
|
||||
<input name="in1" type="color3" value="0, 0, 0" uiname="Value" />
|
||||
<input name="in2" type="color3" value="0, 0, 0" uiname="Min" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algheighttonormal" node="algheighttonormal">
|
||||
<output name="out" type="vector3" />
|
||||
<input name="h" type="float" value="0" uiname="Height" />
|
||||
<input name="dU" type="float" value="0" uiname="HeightU" />
|
||||
<input name="dV" type="float" value="0" uiname="HeightV" />
|
||||
<input name="delta" type="float" value="0.0001" uiname="Delta" />
|
||||
<input name="intensity" type="float" value="1" uimin="0.001" uimax="10.0" uiname="Normal Intensity" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algnormalTStoWS_vector3" node="algnormalTStoWS">
|
||||
<output name="out" type="vector3" />
|
||||
<input name="normalTS" type="vector3" value="0.5, 0.5, 1" uiname="Normal Tangent Space" />
|
||||
<input name="openGL" type="boolean" value="true" uiname="OpenGL Tangent Space" uniform="true" />
|
||||
<input name="index" type="integer" value="0" uiname="UV Index" uniform="true" />
|
||||
</nodedef>
|
||||
<nodedef name="ND_algsrgb_to_linear" node="algsrgb_to_linear">
|
||||
<output name="out" type="color3" />
|
||||
<input name="in" type="color3" value="0, 0, 0" uiname="In" />
|
||||
</nodedef>
|
||||
</materialx>
|
@ -1,518 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<materialx version="1.38" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:include href="stdlib/stdlib_defs.mtlx" />
|
||||
<xi:include href="stdlib/stdlib_ng.mtlx" />
|
||||
<nodegraph name="NG_algclamp_float" nodedef="ND_algclamp_float">
|
||||
<max name="ND_max_float_1" type="float">
|
||||
<input name="in1" type="float" interfacename="val" />
|
||||
<input name="in2" type="float" interfacename="i_min" />
|
||||
</max>
|
||||
<min name="ND_min_float_2" type="float">
|
||||
<input name="in1" type="float" nodename="ND_max_float_1" />
|
||||
<input name="in2" type="float" interfacename="i_max" />
|
||||
</min>
|
||||
<output name="out" type="float" nodename="ND_min_float_2" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algclamp_vector2" nodedef="ND_algclamp_vector2">
|
||||
<max name="ND_max_vector2_3" type="vector2">
|
||||
<input name="in1" type="vector2" interfacename="val" />
|
||||
<input name="in2" type="vector2" interfacename="i_min" />
|
||||
</max>
|
||||
<min name="ND_min_vector2_4" type="vector2">
|
||||
<input name="in1" type="vector2" nodename="ND_max_vector2_3" />
|
||||
<input name="in2" type="vector2" interfacename="i_max" />
|
||||
</min>
|
||||
<output name="out" type="vector2" nodename="ND_min_vector2_4" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algclamp_vector3" nodedef="ND_algclamp_vector3">
|
||||
<max name="ND_max_vector3_5" type="vector3">
|
||||
<input name="in1" type="vector3" interfacename="val" />
|
||||
<input name="in2" type="vector3" interfacename="i_min" />
|
||||
</max>
|
||||
<min name="ND_min_vector3_6" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_max_vector3_5" />
|
||||
<input name="in2" type="vector3" interfacename="i_max" />
|
||||
</min>
|
||||
<output name="out" type="vector3" nodename="ND_min_vector3_6" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algclamp_vector4" nodedef="ND_algclamp_vector4">
|
||||
<max name="ND_max_vector4_7" type="vector4">
|
||||
<input name="in1" type="vector4" interfacename="val" />
|
||||
<input name="in2" type="vector4" interfacename="i_min" />
|
||||
</max>
|
||||
<min name="ND_min_vector4_8" type="vector4">
|
||||
<input name="in1" type="vector4" nodename="ND_max_vector4_7" />
|
||||
<input name="in2" type="vector4" interfacename="i_max" />
|
||||
</min>
|
||||
<output name="out" type="vector4" nodename="ND_min_vector4_8" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algclamp_color3" nodedef="ND_algclamp_color3">
|
||||
<max name="ND_max_color3_9" type="color3">
|
||||
<input name="in1" type="color3" interfacename="val" />
|
||||
<input name="in2" type="color3" interfacename="i_min" />
|
||||
</max>
|
||||
<min name="ND_min_color3_10" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_max_color3_9" />
|
||||
<input name="in2" type="color3" interfacename="i_max" />
|
||||
</min>
|
||||
<output name="out" type="color3" nodename="ND_min_color3_10" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_alglevels_float" nodedef="ND_alglevels_float">
|
||||
<subtract name="ND_subtract_float_11" type="float">
|
||||
<input name="in1" type="float" interfacename="pixel" />
|
||||
<input name="in2" type="float" interfacename="i_min" />
|
||||
</subtract>
|
||||
<subtract name="ND_subtract_float_12" type="float">
|
||||
<input name="in1" type="float" interfacename="i_max" />
|
||||
<input name="in2" type="float" interfacename="i_min" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_float_13" type="float">
|
||||
<input name="in1" type="float" nodename="ND_subtract_float_11" />
|
||||
<input name="in2" type="float" nodename="ND_subtract_float_12" />
|
||||
</divide>
|
||||
<constant name="ND_constant_float_14" type="float">
|
||||
<input name="value" type="float" value="0" />
|
||||
</constant>
|
||||
<constant name="ND_constant_float_15" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<max name="ND_max_float_16" type="float">
|
||||
<input name="in1" type="float" nodename="ND_divide_float_13" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_14" />
|
||||
</max>
|
||||
<min name="ND_min_float_17" type="float">
|
||||
<input name="in1" type="float" nodename="ND_max_float_16" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_15" />
|
||||
</min>
|
||||
<constant name="ND_constant_float_18" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_19" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_18" />
|
||||
<input name="in2" type="float" interfacename="i_gamma" />
|
||||
</divide>
|
||||
<power name="ND_power_float_20" type="float">
|
||||
<input name="in1" type="float" nodename="ND_min_float_17" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_19" />
|
||||
</power>
|
||||
<output name="out" type="float" nodename="ND_power_float_20" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_alglevels_vector2" nodedef="ND_alglevels_vector2">
|
||||
<subtract name="ND_subtract_vector2_21" type="vector2">
|
||||
<input name="in1" type="vector2" interfacename="pixel" />
|
||||
<input name="in2" type="vector2" interfacename="i_min" />
|
||||
</subtract>
|
||||
<subtract name="ND_subtract_vector2_22" type="vector2">
|
||||
<input name="in1" type="vector2" interfacename="i_max" />
|
||||
<input name="in2" type="vector2" interfacename="i_min" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_vector2_23" type="vector2">
|
||||
<input name="in1" type="vector2" nodename="ND_subtract_vector2_21" />
|
||||
<input name="in2" type="vector2" nodename="ND_subtract_vector2_22" />
|
||||
</divide>
|
||||
<constant name="ND_constant_vector2_24" type="vector2">
|
||||
<input name="value" type="vector2" value="0, 0" />
|
||||
</constant>
|
||||
<constant name="ND_constant_vector2_25" type="vector2">
|
||||
<input name="value" type="vector2" value="1, 1" />
|
||||
</constant>
|
||||
<max name="ND_max_vector2_26" type="vector2">
|
||||
<input name="in1" type="vector2" nodename="ND_divide_vector2_23" />
|
||||
<input name="in2" type="vector2" nodename="ND_constant_vector2_24" />
|
||||
</max>
|
||||
<min name="ND_min_vector2_27" type="vector2">
|
||||
<input name="in1" type="vector2" nodename="ND_max_vector2_26" />
|
||||
<input name="in2" type="vector2" nodename="ND_constant_vector2_25" />
|
||||
</min>
|
||||
<constant name="ND_constant_float_28" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_29" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_28" />
|
||||
<input name="in2" type="float" interfacename="i_gamma" />
|
||||
</divide>
|
||||
<power name="ND_power_vector2FA_30" type="vector2">
|
||||
<input name="in1" type="vector2" nodename="ND_min_vector2_27" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_29" />
|
||||
</power>
|
||||
<output name="out" type="vector2" nodename="ND_power_vector2FA_30" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_alglevels_vector3" nodedef="ND_alglevels_vector3">
|
||||
<subtract name="ND_subtract_vector3_31" type="vector3">
|
||||
<input name="in1" type="vector3" interfacename="pixel" />
|
||||
<input name="in2" type="vector3" interfacename="i_min" />
|
||||
</subtract>
|
||||
<subtract name="ND_subtract_vector3_32" type="vector3">
|
||||
<input name="in1" type="vector3" interfacename="i_max" />
|
||||
<input name="in2" type="vector3" interfacename="i_min" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_vector3_33" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_subtract_vector3_31" />
|
||||
<input name="in2" type="vector3" nodename="ND_subtract_vector3_32" />
|
||||
</divide>
|
||||
<constant name="ND_constant_vector3_34" type="vector3">
|
||||
<input name="value" type="vector3" value="0, 0, 0" />
|
||||
</constant>
|
||||
<constant name="ND_constant_vector3_35" type="vector3">
|
||||
<input name="value" type="vector3" value="1, 1, 1" />
|
||||
</constant>
|
||||
<max name="ND_max_vector3_36" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_divide_vector3_33" />
|
||||
<input name="in2" type="vector3" nodename="ND_constant_vector3_34" />
|
||||
</max>
|
||||
<min name="ND_min_vector3_37" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_max_vector3_36" />
|
||||
<input name="in2" type="vector3" nodename="ND_constant_vector3_35" />
|
||||
</min>
|
||||
<constant name="ND_constant_float_38" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_39" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_38" />
|
||||
<input name="in2" type="float" interfacename="i_gamma" />
|
||||
</divide>
|
||||
<power name="ND_power_vector3FA_40" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_min_vector3_37" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_39" />
|
||||
</power>
|
||||
<output name="out" type="vector3" nodename="ND_power_vector3FA_40" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_alglevels_vector4" nodedef="ND_alglevels_vector4">
|
||||
<subtract name="ND_subtract_vector4_41" type="vector4">
|
||||
<input name="in1" type="vector4" interfacename="pixel" />
|
||||
<input name="in2" type="vector4" interfacename="i_min" />
|
||||
</subtract>
|
||||
<subtract name="ND_subtract_vector4_42" type="vector4">
|
||||
<input name="in1" type="vector4" interfacename="i_max" />
|
||||
<input name="in2" type="vector4" interfacename="i_min" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_vector4_43" type="vector4">
|
||||
<input name="in1" type="vector4" nodename="ND_subtract_vector4_41" />
|
||||
<input name="in2" type="vector4" nodename="ND_subtract_vector4_42" />
|
||||
</divide>
|
||||
<constant name="ND_constant_vector4_44" type="vector4">
|
||||
<input name="value" type="vector4" value="0, 0, 0, 0" />
|
||||
</constant>
|
||||
<constant name="ND_constant_vector4_45" type="vector4">
|
||||
<input name="value" type="vector4" value="1, 1, 1, 1" />
|
||||
</constant>
|
||||
<max name="ND_max_vector4_46" type="vector4">
|
||||
<input name="in1" type="vector4" nodename="ND_divide_vector4_43" />
|
||||
<input name="in2" type="vector4" nodename="ND_constant_vector4_44" />
|
||||
</max>
|
||||
<min name="ND_min_vector4_47" type="vector4">
|
||||
<input name="in1" type="vector4" nodename="ND_max_vector4_46" />
|
||||
<input name="in2" type="vector4" nodename="ND_constant_vector4_45" />
|
||||
</min>
|
||||
<constant name="ND_constant_float_48" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_49" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_48" />
|
||||
<input name="in2" type="float" interfacename="i_gamma" />
|
||||
</divide>
|
||||
<power name="ND_power_vector4FA_50" type="vector4">
|
||||
<input name="in1" type="vector4" nodename="ND_min_vector4_47" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_49" />
|
||||
</power>
|
||||
<output name="out" type="vector4" nodename="ND_power_vector4FA_50" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_alglevels_color3" nodedef="ND_alglevels_color3">
|
||||
<subtract name="ND_subtract_color3_51" type="color3">
|
||||
<input name="in1" type="color3" interfacename="pixel" />
|
||||
<input name="in2" type="color3" interfacename="i_min" />
|
||||
</subtract>
|
||||
<subtract name="ND_subtract_color3_52" type="color3">
|
||||
<input name="in1" type="color3" interfacename="i_max" />
|
||||
<input name="in2" type="color3" interfacename="i_min" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_color3_53" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_subtract_color3_51" />
|
||||
<input name="in2" type="color3" nodename="ND_subtract_color3_52" />
|
||||
</divide>
|
||||
<constant name="ND_constant_color3_54" type="color3">
|
||||
<input name="value" type="color3" value="0, 0, 0" />
|
||||
</constant>
|
||||
<constant name="ND_constant_color3_55" type="color3">
|
||||
<input name="value" type="color3" value="1, 1, 1" />
|
||||
</constant>
|
||||
<max name="ND_max_color3_56" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_divide_color3_53" />
|
||||
<input name="in2" type="color3" nodename="ND_constant_color3_54" />
|
||||
</max>
|
||||
<min name="ND_min_color3_57" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_max_color3_56" />
|
||||
<input name="in2" type="color3" nodename="ND_constant_color3_55" />
|
||||
</min>
|
||||
<constant name="ND_constant_float_58" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_59" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_58" />
|
||||
<input name="in2" type="float" interfacename="i_gamma" />
|
||||
</divide>
|
||||
<power name="ND_power_color3FA_60" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_min_color3_57" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_59" />
|
||||
</power>
|
||||
<output name="out" type="color3" nodename="ND_power_color3FA_60" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algdot_color3" nodedef="ND_algdot_color3">
|
||||
<swizzle name="ND_swizzle_color3_float_61" type="float">
|
||||
<input name="in" type="color3" interfacename="in1" />
|
||||
<input name="channels" type="string" value="r" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_62" type="float">
|
||||
<input name="in" type="color3" interfacename="in2" />
|
||||
<input name="channels" type="string" value="r" />
|
||||
</swizzle>
|
||||
<multiply name="ND_multiply_float_63" type="float">
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_61" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_62" />
|
||||
</multiply>
|
||||
<swizzle name="ND_swizzle_color3_float_64" type="float">
|
||||
<input name="in" type="color3" interfacename="in1" />
|
||||
<input name="channels" type="string" value="g" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_65" type="float">
|
||||
<input name="in" type="color3" interfacename="in2" />
|
||||
<input name="channels" type="string" value="g" />
|
||||
</swizzle>
|
||||
<multiply name="ND_multiply_float_66" type="float">
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_64" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_65" />
|
||||
</multiply>
|
||||
<add name="ND_add_float_67" type="float">
|
||||
<input name="in1" type="float" nodename="ND_multiply_float_63" />
|
||||
<input name="in2" type="float" nodename="ND_multiply_float_66" />
|
||||
</add>
|
||||
<swizzle name="ND_swizzle_color3_float_68" type="float">
|
||||
<input name="in" type="color3" interfacename="in1" />
|
||||
<input name="channels" type="string" value="b" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_69" type="float">
|
||||
<input name="in" type="color3" interfacename="in2" />
|
||||
<input name="channels" type="string" value="b" />
|
||||
</swizzle>
|
||||
<multiply name="ND_multiply_float_70" type="float">
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_68" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_69" />
|
||||
</multiply>
|
||||
<add name="ND_add_float_71" type="float">
|
||||
<input name="in1" type="float" nodename="ND_add_float_67" />
|
||||
<input name="in2" type="float" nodename="ND_multiply_float_70" />
|
||||
</add>
|
||||
<output name="out" type="float" nodename="ND_add_float_71" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algheighttonormal" nodedef="ND_algheighttonormal">
|
||||
<subtract name="ND_subtract_float_72" type="float">
|
||||
<input name="in1" type="float" interfacename="dU" />
|
||||
<input name="in2" type="float" interfacename="h" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_float_73" type="float">
|
||||
<input name="in1" type="float" nodename="ND_subtract_float_72" />
|
||||
<input name="in2" type="float" interfacename="delta" />
|
||||
</divide>
|
||||
<subtract name="ND_subtract_float_74" type="float">
|
||||
<input name="in1" type="float" interfacename="dV" />
|
||||
<input name="in2" type="float" interfacename="h" />
|
||||
</subtract>
|
||||
<divide name="ND_divide_float_75" type="float">
|
||||
<input name="in1" type="float" nodename="ND_subtract_float_74" />
|
||||
<input name="in2" type="float" interfacename="delta" />
|
||||
</divide>
|
||||
<constant name="ND_constant_float_76" type="float">
|
||||
<input name="value" type="float" value="1" />
|
||||
</constant>
|
||||
<divide name="ND_divide_float_77" type="float">
|
||||
<input name="in1" type="float" nodename="ND_constant_float_76" />
|
||||
<input name="in2" type="float" interfacename="intensity" />
|
||||
</divide>
|
||||
<combine3 name="ND_combine3_vector3_78" type="vector3">
|
||||
<input name="in1" type="float" nodename="ND_divide_float_73" />
|
||||
<input name="in2" type="float" nodename="ND_divide_float_75" />
|
||||
<input name="in3" type="float" nodename="ND_divide_float_77" />
|
||||
</combine3>
|
||||
<normalize name="ND_normalize_vector3_79" type="vector3">
|
||||
<input name="in" type="vector3" nodename="ND_combine3_vector3_78" />
|
||||
</normalize>
|
||||
<constant name="ND_constant_vector3_80" type="vector3">
|
||||
<input name="value" type="vector3" value="1, 1, 1" />
|
||||
</constant>
|
||||
<add name="ND_add_vector3_81" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_normalize_vector3_79" />
|
||||
<input name="in2" type="vector3" nodename="ND_constant_vector3_80" />
|
||||
</add>
|
||||
<constant name="ND_constant_float_82" type="float">
|
||||
<input name="value" type="float" value="2" />
|
||||
</constant>
|
||||
<divide name="ND_divide_vector3FA_83" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_add_vector3_81" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_82" />
|
||||
</divide>
|
||||
<output name="out" type="vector3" nodename="ND_divide_vector3FA_83" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algnormalTStoWS_vector3" nodedef="ND_algnormalTStoWS_vector3">
|
||||
<constant name="ND_constant_float_84" type="float">
|
||||
<input name="value" type="float" value="0.5" />
|
||||
</constant>
|
||||
<subtract name="ND_subtract_vector3FA_85" type="vector3">
|
||||
<input name="in1" type="vector3" interfacename="normalTS" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_84" />
|
||||
</subtract>
|
||||
<constant name="ND_constant_float_86" type="float">
|
||||
<input name="value" type="float" value="2" />
|
||||
</constant>
|
||||
<multiply name="ND_multiply_vector3FA_87" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_subtract_vector3FA_85" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_86" />
|
||||
</multiply>
|
||||
<swizzle name="ND_swizzle_vector3_float_88" type="float">
|
||||
<input name="in" type="vector3" nodename="ND_multiply_vector3FA_87" />
|
||||
<input name="channels" type="string" value="x" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_vector3_float_89" type="float">
|
||||
<input name="in" type="vector3" nodename="ND_multiply_vector3FA_87" />
|
||||
<input name="channels" type="string" value="y" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_vector3_float_90" type="float">
|
||||
<input name="in" type="vector3" nodename="ND_multiply_vector3FA_87" />
|
||||
<input name="channels" type="string" value="z" />
|
||||
</swizzle>
|
||||
<tangent name="ND_tangent_vector3_91" type="vector3">
|
||||
<input name="space" type="string" value="world" />
|
||||
<input name="index" type="integer" interfacename="index" />
|
||||
</tangent>
|
||||
<bitangent name="ND_bitangent_vector3_92" type="vector3">
|
||||
<input name="space" type="string" value="world" />
|
||||
<input name="index" type="integer" interfacename="index" />
|
||||
</bitangent>
|
||||
<normal name="ND_normal_vector3_93" type="vector3">
|
||||
<input name="space" type="string" value="world" />
|
||||
</normal>
|
||||
<constant name="ND_constant_float_94" type="float">
|
||||
<input name="value" type="float" value="-1" />
|
||||
</constant>
|
||||
<multiply name="ND_multiply_vector3FA_95" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_bitangent_vector3_92" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_94" />
|
||||
</multiply>
|
||||
<ifequal name="ND_ifequal_vector3B_96" type="vector3">
|
||||
<input name="value1" type="boolean" interfacename="openGL" />
|
||||
<input name="value2" type="boolean" value="false" />
|
||||
<input name="in1" type="vector3" nodename="ND_bitangent_vector3_92" />
|
||||
<input name="in2" type="vector3" nodename="ND_multiply_vector3FA_95" />
|
||||
</ifequal>
|
||||
<multiply name="ND_multiply_vector3FA_97" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_tangent_vector3_91" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_vector3_float_88" />
|
||||
</multiply>
|
||||
<multiply name="ND_multiply_vector3FA_98" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_ifequal_vector3B_96" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_vector3_float_89" />
|
||||
</multiply>
|
||||
<multiply name="ND_multiply_vector3FA_99" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_normal_vector3_93" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_vector3_float_90" />
|
||||
</multiply>
|
||||
<add name="ND_add_vector3_100" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_multiply_vector3FA_97" />
|
||||
<input name="in2" type="vector3" nodename="ND_multiply_vector3FA_98" />
|
||||
</add>
|
||||
<add name="ND_add_vector3_101" type="vector3">
|
||||
<input name="in1" type="vector3" nodename="ND_add_vector3_100" />
|
||||
<input name="in2" type="vector3" nodename="ND_multiply_vector3FA_99" />
|
||||
</add>
|
||||
<normalize name="ND_normalize_vector3_102" type="vector3">
|
||||
<input name="in" type="vector3" nodename="ND_add_vector3_101" />
|
||||
</normalize>
|
||||
<output name="out" type="vector3" nodename="ND_normalize_vector3_102" />
|
||||
</nodegraph>
|
||||
<nodegraph name="NG_algsrgb_to_linear" nodedef="ND_algsrgb_to_linear">
|
||||
<constant name="ND_constant_float_103" type="float">
|
||||
<input name="value" type="float" value="12.92" />
|
||||
</constant>
|
||||
<divide name="ND_divide_color3FA_104" type="color3">
|
||||
<input name="in1" type="color3" interfacename="in" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_103" />
|
||||
</divide>
|
||||
<constant name="ND_constant_float_105" type="float">
|
||||
<input name="value" type="float" value="0.055" />
|
||||
</constant>
|
||||
<add name="ND_add_color3FA_106" type="color3">
|
||||
<input name="in1" type="color3" interfacename="in" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_105" />
|
||||
</add>
|
||||
<constant name="ND_constant_float_107" type="float">
|
||||
<input name="value" type="float" value="1.055" />
|
||||
</constant>
|
||||
<divide name="ND_divide_color3FA_108" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_add_color3FA_106" />
|
||||
<input name="in2" type="float" nodename="ND_constant_float_107" />
|
||||
</divide>
|
||||
<power name="ND_power_color3FA_109" type="color3">
|
||||
<input name="in1" type="color3" nodename="ND_divide_color3FA_108" />
|
||||
<input name="in2" type="float" value="2.4" />
|
||||
</power>
|
||||
<swizzle name="ND_swizzle_color3_float_110" type="float">
|
||||
<input name="in" type="color3" interfacename="in" />
|
||||
<input name="channels" type="string" value="r" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_111" type="float">
|
||||
<input name="in" type="color3" interfacename="in" />
|
||||
<input name="channels" type="string" value="g" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_112" type="float">
|
||||
<input name="in" type="color3" interfacename="in" />
|
||||
<input name="channels" type="string" value="b" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_113" type="float">
|
||||
<input name="in" type="color3" nodename="ND_divide_color3FA_104" />
|
||||
<input name="channels" type="string" value="r" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_114" type="float">
|
||||
<input name="in" type="color3" nodename="ND_divide_color3FA_104" />
|
||||
<input name="channels" type="string" value="g" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_115" type="float">
|
||||
<input name="in" type="color3" nodename="ND_divide_color3FA_104" />
|
||||
<input name="channels" type="string" value="b" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_116" type="float">
|
||||
<input name="in" type="color3" nodename="ND_power_color3FA_109" />
|
||||
<input name="channels" type="string" value="r" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_117" type="float">
|
||||
<input name="in" type="color3" nodename="ND_power_color3FA_109" />
|
||||
<input name="channels" type="string" value="g" />
|
||||
</swizzle>
|
||||
<swizzle name="ND_swizzle_color3_float_118" type="float">
|
||||
<input name="in" type="color3" nodename="ND_power_color3FA_109" />
|
||||
<input name="channels" type="string" value="b" />
|
||||
</swizzle>
|
||||
<ifgreater name="ND_ifgreater_float_119" type="float">
|
||||
<input name="value1" type="float" nodename="ND_swizzle_color3_float_110" />
|
||||
<input name="value2" type="float" value="0.045045" />
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_116" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_113" />
|
||||
</ifgreater>
|
||||
<ifgreater name="ND_ifgreater_float_120" type="float">
|
||||
<input name="value1" type="float" nodename="ND_swizzle_color3_float_111" />
|
||||
<input name="value2" type="float" value="0.045045" />
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_117" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_114" />
|
||||
</ifgreater>
|
||||
<ifgreater name="ND_ifgreater_float_121" type="float">
|
||||
<input name="value1" type="float" nodename="ND_swizzle_color3_float_112" />
|
||||
<input name="value2" type="float" value="0.045045" />
|
||||
<input name="in1" type="float" nodename="ND_swizzle_color3_float_118" />
|
||||
<input name="in2" type="float" nodename="ND_swizzle_color3_float_115" />
|
||||
</ifgreater>
|
||||
<combine3 name="ND_combine3_color3_122" type="color3">
|
||||
<input name="in1" type="float" nodename="ND_ifgreater_float_119" />
|
||||
<input name="in2" type="float" nodename="ND_ifgreater_float_120" />
|
||||
<input name="in3" type="float" nodename="ND_ifgreater_float_121" />
|
||||
</combine3>
|
||||
<output name="out" type="color3" nodename="ND_combine3_color3_122" />
|
||||
</nodegraph>
|
||||
</materialx>
|
@ -332,7 +332,6 @@ def generate_basic_classes():
|
||||
('USD', "USD", utils.MX_LIBS_DIR / "bxdf/usd_preview_surface.mtlx"),
|
||||
('STD', None, utils.MX_LIBS_DIR / "stdlib/stdlib_defs.mtlx"),
|
||||
('PBR', "PBR", utils.MX_LIBS_DIR / "pbrlib/pbrlib_defs.mtlx"),
|
||||
('ALG', "Algorithm", utils.MX_ADDON_LIBS_DIR / "alglib/alglib_defs.mtlx"),
|
||||
]
|
||||
|
||||
for prefix, category, file_path in files:
|
||||
|
Loading…
Reference in New Issue
Block a user