Skip to content

Commit

Permalink
Minor clarity improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Jul 25, 2023
1 parent 10a4d12 commit c0707ad
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
72 changes: 36 additions & 36 deletions libraries/stdlib/stdlib_ng.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -1689,21 +1689,42 @@
Pattern can be regular or staggered.
-->
<nodegraph name="NG_grecian_color3" nodedef="ND_grecian_color3">
<multiply name="coord_adj" type="vector2">
<input name="in1" type="vector2" interfacename="texcoord" />
<input name="in2" type="vector2" nodename="invspc_vec" />
</multiply>
<subtract name="thick_to_size" type="float">
<input name="in1" type="float" interfacename="spacing" />
<input name="in2" type="float" interfacename="thickness" />
</subtract>
<divide name="scale" type="float">
<input name="in1" type="float" nodename="thick_to_size" />
<input name="in2" type="float" interfacename="spacing" />
</divide>
<divide name="inv_spacing" type="float">
<input name="in1" type="float" value="1" />
<input name="in2" type="float" interfacename="spacing" />
</divide>
<combine2 name="invspc_vec" type="vector2">
<input name="in1" type="float" nodename="inv_spacing" />
<input name="in2" type="float" nodename="inv_spacing" />
</combine2>
<multiply name="coord_adj" type="vector2">
<input name="in1" type="vector2" interfacename="texcoord" />
<input name="in2" type="vector2" nodename="invspc_vec" />
</multiply>
<modulo name="mod_Y" type="float">
<input name="in1" type="float" nodename="coord_adj" channels="y" />
</modulo>
<divide name="inv_spacing" type="float">
<input name="in1" type="float" value="1" />
<input name="in2" type="float" interfacename="spacing" />
</divide>
<modulo name="mod_Y_row" type="float">
<input name="in1" type="float" nodename="coord_adj" channels="y" />
<input name="in2" type="float" value="2" />
</modulo>
<multiply name="mody_2" type="float">
<input name="in1" type="float" nodename="mod_Y" />
<input name="in2" type="float" value="2" />
</multiply>
<ifgreater name="alt_rows_shift" type="float">
<input name="value1" type="float" nodename="mod_Y_row" />
<input name="value2" type="float" value="1" />
<input name="in1" type="float" value="0.5" />
</ifgreater>
<add name="shift_X" type="float">
<input name="in1" type="float" nodename="coord_adj" channels="x" />
<input name="in2" type="float" nodename="alt_rows_shift" />
Expand All @@ -1725,10 +1746,6 @@
<input name="in1" type="float" nodename="modx_2" />
<input name="in2" type="float" value="1" />
</subtract>
<multiply name="mody_2" type="float">
<input name="in1" type="float" nodename="mod_Y" />
<input name="in2" type="float" value="2" />
</multiply>
<subtract name="subY_1" type="float">
<input name="in1" type="float" nodename="mody_2" />
<input name="in2" type="float" value="1" />
Expand All @@ -1755,23 +1772,14 @@
<input name="in1" type="float" nodename="X_detect" />
<input name="in2" type="float" nodename="Y_detect" />
</min>
<modulo name="mod_Y_row" type="float">
<input name="in1" type="float" nodename="coord_adj" channels="y" />
<input name="in2" type="float" value="2" />
</modulo>
<ifgreater name="alt_rows_shift" type="float">
<input name="value1" type="float" nodename="mod_Y_row" />
<input name="value2" type="float" value="1" />
<input name="in1" type="float" value="0.5" />
</ifgreater>
<subtract name="thick_to_size" type="float">
<input name="in1" type="float" interfacename="spacing" />
<input name="in2" type="float" interfacename="thickness" />
<subtract name="inv_result" type="float">
<input name="in1" type="float" value="1" />
<input name="in2" type="float" nodename="min" />
</subtract>
<divide name="scale" type="float">
<input name="in1" type="float" nodename="thick_to_size" />
<input name="in2" type="float" interfacename="spacing" />
</divide>
<combine2 name="sample_vec" type="vector2">
<input name="in1" type="float" nodename="subX_1" />
<input name="in2" type="float" nodename="subY_1" />
</combine2>
<constant name="diag1_point1" type="vector2">
<input name="value" type="vector2" value="1, 1" />
</constant>
Expand All @@ -1784,18 +1792,10 @@
<constant name="diag2_point2" type="vector2">
<input name="value" type="vector2" value="1, -1" />
</constant>
<combine2 name="sample_vec" type="vector2">
<input name="in1" type="float" nodename="subX_1" />
<input name="in2" type="float" nodename="subY_1" />
</combine2>
<divide name="diag_thickness" type="float">
<input name="in1" type="float" interfacename="thickness" />
<input name="in2" type="float" interfacename="spacing" />
</divide>
<subtract name="inv_result" type="float">
<input name="in1" type="float" value="1" />
<input name="in2" type="float" nodename="min" />
</subtract>
<line name="line_diag1" type="float">
<input name="sample" type="vector2" nodename="sample_vec" />
<input name="radius" type="float" nodename="diag_thickness" />
Expand Down
6 changes: 3 additions & 3 deletions resources/Materials/TestSuite/stdlib/procedural/grecian.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<texcoord name="texcoord_vector2" type="vector2" />
<multiply name="multiply_vector2FA" type="vector2">
<input name="in1" type="vector2" nodename="texcoord_vector2" />
<input name="in2" type="float" value="30" />
<input name="in2" type="float" value="29" />
</multiply>
<grecian name="grecian_color3" type="color3">
<input name="texcoord" type="vector2" nodename="multiply_vector2FA" />
<input name="thickness" type="float" value="0.06" />
<input name="spacing" type="float" value="0.75" />
<input name="thickness" type="float" value="0.05" />
<input name="spacing" type="float" value="1.0" />
</grecian>
<standard_surface name="SR_test_grecian" type="surfaceshader">
<input name="base" type="float" value="1" />
Expand Down

0 comments on commit c0707ad

Please sign in to comment.