Skip to content

Commit

Permalink
Changes ramp to use 10 control points instead of 30.
Browse files Browse the repository at this point in the history
  • Loading branch information
feldstj committed Dec 9, 2024
1 parent 527207e commit abe8efa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 268 deletions.
44 changes: 2 additions & 42 deletions libraries/stdlib/stdlib_defs.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@

<!--
Node: <ramp>
A ramp that supports up to 30 control points.
A ramp that supports up to 10 control points.
-->
<nodedef name="ND_ramp" node="ramp" nodegroup="procedural2d">
<input name="texcoord" type="vector2" defaultgeomprop="UV0" />
Expand All @@ -494,52 +494,12 @@
<input name="color9" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval10" type="float" value="1" uimin="0" uimax="1" />
<input name="color10" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval11" type="float" value="1" uimin="0" uimax="1" />
<input name="color11" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval12" type="float" value="1" uimin="0" uimax="1" />
<input name="color12" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval13" type="float" value="1" uimin="0" uimax="1" />
<input name="color13" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval14" type="float" value="1" uimin="0" uimax="1" />
<input name="color14" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval15" type="float" value="1" uimin="0" uimax="1" />
<input name="color15" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval16" type="float" value="1" uimin="0" uimax="1" />
<input name="color16" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval17" type="float" value="1" uimin="0" uimax="1" />
<input name="color17" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval18" type="float" value="1" uimin="0" uimax="1" />
<input name="color18" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval19" type="float" value="1" uimin="0" uimax="1" />
<input name="color19" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval20" type="float" value="1" uimin="0" uimax="1" />
<input name="color20" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval21" type="float" value="1" uimin="0" uimax="1" />
<input name="color21" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval22" type="float" value="1" uimin="0" uimax="1" />
<input name="color22" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval23" type="float" value="1" uimin="0" uimax="1" />
<input name="color23" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval24" type="float" value="1" uimin="0" uimax="1" />
<input name="color24" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval25" type="float" value="1" uimin="0" uimax="1" />
<input name="color25" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval26" type="float" value="1" uimin="0" uimax="1" />
<input name="color26" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval27" type="float" value="1" uimin="0" uimax="1" />
<input name="color27" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval28" type="float" value="1" uimin="0" uimax="1" />
<input name="color28" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval29" type="float" value="1" uimin="0" uimax="1" />
<input name="color29" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<input name="interval30" type="float" value="1" uimin="0" uimax="1" />
<input name="color30" type="color4" value="1,1,1,1" uimin="0,0,0,0" uimax="1,1,1,1" />
<output name="out" type="color4" />
</nodedef>

<!--
Node <ramp_gradient>
Used by the ramp node to support up to 30 control points.
Used by the ramp node to support up to 10 control points.
-->
<nodedef name="ND_ramp_gradient" node="ramp_gradient" nodegroup="procedural2d">
<input name="x" type="float" value="0" uimin="0" uimax="1" />
Expand Down
Loading

0 comments on commit abe8efa

Please sign in to comment.