Skip to content

Commit

Permalink
Adding Legacy Waves procedural
Browse files Browse the repository at this point in the history
Legacy Waves procedural and 2 utiilty graphs added.

This procedural has a limit of 8 waves. It accepts higher number of waves as input, but will return the max of 8 waves always.
  • Loading branch information
zicher3d committed Jan 10, 2025
1 parent fa4732b commit ba98597
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 0 deletions.
38 changes: 38 additions & 0 deletions contrib/adsk/libraries/adsklib/adsklib_legacy_defs.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,44 @@
<output name="out" type="color3" />
</nodedef>

<nodedef name="ND_util_sinewave_float" node="util_sinewave">
<input name="position" type="vector3" defaultgeomprop="Pobject" />
<input name="phase" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="rate" type="float" value="1" uisoftmin="0.0" uisoftmax="10.0" />
<output name="out" type="float" />
</nodedef>

<nodedef name="ND_util_wave_float" node="util_wave">
<input name="position" type="vector3" defaultgeomprop="Pobject" />
<input name="radius" type="float" value="2" uimin="0.0" uisoftmax="10.0" />
<input name="seed" type="float" value="0" uimin="0.0" uisoftmax="100.0" />
<input name="wavemin" type="float" value="1" uimin="0.0" uisoftmax="100.0" />
<input name="wavemax" type="float" value="5" uimin="0.0" uisoftmax="100.0" />
<input name="phase" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="distribution3d" type="boolean" value="false" />
<input name="fade" type="boolean" value="false" />
<output name="out" type="float" />
</nodedef>

<nodedef name="ND_legacy_waves" node="legacy_waves">
<input name="waves" type="float" value="4.5" uimin="0.0" uisoftmax="8" />
<input name="position" type="vector3" defaultgeomprop="Pobject" />
<input name="radius" type="float" value="5" uimin="0.0" uisoftmax="10.0" />
<input name="seed" type="float" value="0" uimin="0.0" uisoftmax="100.0" />
<input name="wavemin" type="float" value="1" uimin="0.0" uisoftmax="100.0" />
<input name="wavemax" type="float" value="5" uimin="0.0" uisoftmax="100.0" />
<input name="phase" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="distribution3d" type="boolean" value="false" />
<input name="fade" type="boolean" value="false" />
<input name="offset_x" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="offset_y" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="offset_z" type="float" value="0" uisoftmin="0.0" uisoftmax="1.0" />
<input name="rotate_x" type="float" value="0" uisoftmin="0.0" uisoftmax="360" />
<input name="rotate_y" type="float" value="0" uisoftmin="0.0" uisoftmax="360" />
<input name="rotate_z" type="float" value="0" uisoftmin="0.0" uisoftmax="360" />
<output name="out" type="color3" />
</nodedef>

<!--
=============================================
Nodedefs for Autodesk Legacy Material Classes
Expand Down
Loading

0 comments on commit ba98597

Please sign in to comment.