Skip to content

Commit

Permalink
Additional optimizations to tiledcircles
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Aug 4, 2023
1 parent 719e701 commit 4da9cea
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions libraries/stdlib/stdlib_ng.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,14 @@
<modulo name="mod_texcoord" type="vector2">
<input name="in1" type="vector2" nodename="texcoord_bias" />
</modulo>
<multiply name="mod_texcoord_2" type="vector2">
<input name="in1" type="vector2" nodename="mod_texcoord" />
<input name="in2" type="float" value="2" />
</multiply>
<subtract name="recenter" type="vector2">
<input name="in1" type="vector2" nodename="mod_texcoord_2" />
<input name="in2" type="float" value="1" />
</subtract>
<modulo name="stagg_Y" type="float">
<input name="in1" type="float" nodename="texcoord_bias" channels="y" />
<input name="in2" type="float" value="1.73205" />
Expand All @@ -1720,22 +1728,6 @@
<input name="in1" type="float" nodename="texcoord_bias" channels="y" />
<input name="in2" type="float" value="0.866025" />
</modulo>
<multiply name="modx_2" type="float">
<input name="in1" type="float" nodename="mod_texcoord" channels="x" />
<input name="in2" type="float" value="2" />
</multiply>
<subtract name="subX_1" type="float">
<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_texcoord" channels="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" />
</subtract>
<subtract name="coord_adj_1" type="float">
<input name="in1" type="float" value="1" />
<input name="in2" type="float" nodename="mod_X_1" />
Expand Down Expand Up @@ -1784,10 +1776,6 @@
<input name="in1" type="float" nodename="max1" />
<input name="in2" type="float" nodename="circle_stagg3" />
</max>
<combine2 name="recenter" type="vector2">
<input name="in1" type="float" nodename="subX_1" />
<input name="in2" type="float" nodename="subY_1" />
</combine2>
<circle name="circle_regular" type="float">
<input name="sample" type="vector2" nodename="recenter" />
<input name="radius" type="float" interfacename="size" />
Expand Down

0 comments on commit 4da9cea

Please sign in to comment.