Skip to content

Commit

Permalink
Fixes to example mtlx files (autodesk-forks#242)
Browse files Browse the repository at this point in the history
Minor fixes to a few of the "Syntax" examples
  • Loading branch information
dbsmythe authored and jstone-lucasfilm committed Jun 24, 2019
1 parent 437d22c commit c7ca0d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/Materials/Examples/Syntax/CustomNode.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- The "bg" input is required, while the "fg" input and "fgamt" parameter are optional. -->
<nodedef name="ND_blend_add_color3" node="blend_add" type="color3" defaultinput="bg">
<input name="fg" type="color3" value="0,0,0"/>
<input name="bg" type="color3"/>
<input name="bg" type="color3" value="0,0,0"/>
<parameter name="fgamt" type="float" value="1.0"/>
</nodedef>

Expand All @@ -20,7 +20,7 @@
<input name="in1" type="color3" nodename="n1"/>
<input name="in2" type="color3" interfacename="bg"/>
</add>
<output name="o_result" type="color3" nodename="n2"/>
<output name="out" type="color3" nodename="n2"/>
</nodegraph>

<!-- Use this custom node in a nodegraph -->
Expand Down
6 changes: 3 additions & 3 deletions resources/Materials/Examples/Syntax/PreShaderComposite.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
by mask image files.
-->
<nodedef name="ND_triblendsrf_surface" type="surfaceshader" node="triblendsrf">
<parameter name="paintmaskfile" type="filename"/>
<parameter name="rustmaskfile" type="filename"/>
<parameter name="paintmaskfile" type="filename" value=""/>
<parameter name="rustmaskfile" type="filename" value=""/>
</nodedef>

<nodegraph name="NG_triblendsrf_surface" nodedef="ND_triblendsrf_surface">
Expand Down Expand Up @@ -115,7 +115,7 @@
</basic_surface>

<!-- Define the output of the shading network nodegraph -->
<output name="o_out" type="surfaceshader" nodename="bsrf1"/>
<output name="out" type="surfaceshader" nodename="bsrf1"/>
</nodegraph>

<!-- Sample blended material using the above network shader -->
Expand Down
4 changes: 2 additions & 2 deletions resources/Materials/Examples/Syntax/SubGraphs.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<nodedef name="ND_checker_float" node="checker" type="float">
<input name="scale" type="vector2" value="8.0, 8.0"/>
</nodedef>
<nodegraph name="IM_checker_float" nodedef="ND_checker_float">
<nodegraph name="NG_checker_float" nodedef="ND_checker_float">
<texcoord name="texcoord1" type="vector2">
<parameter name="index" type="integer" value="0"/>
</texcoord>
Expand Down Expand Up @@ -46,7 +46,7 @@
<input name="color2" type="color3" value="0.1, 0.1, 0.8"/>
<input name="scale" type="vector2" value="8.0, 8.0"/>
</nodedef>
<nodegraph name="IM_color_checker_color3" nodedef="ND_color_checker_color3">
<nodegraph name="NG_color_checker_color3" nodedef="ND_color_checker_color3">
<checker name="checker1" type="float">
<input name="scale" type="vector2" interfacename="scale"/>
</checker>
Expand Down

0 comments on commit c7ca0d4

Please sign in to comment.