Skip to content

Commit

Permalink
Add nodegraph implementations for all non-float smoothstep nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-kerley committed Aug 21, 2024
1 parent 67d2e28 commit 1b3a99e
Show file tree
Hide file tree
Showing 10 changed files with 288 additions and 135 deletions.
7 changes: 0 additions & 7 deletions libraries/stdlib/genglsl/mx_smoothstep_vector2.glsl

This file was deleted.

8 changes: 0 additions & 8 deletions libraries/stdlib/genglsl/mx_smoothstep_vector3.glsl

This file was deleted.

9 changes: 0 additions & 9 deletions libraries/stdlib/genglsl/mx_smoothstep_vector4.glsl

This file was deleted.

3 changes: 0 additions & 3 deletions libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,6 @@

<!-- <smoothstep> -->
<implementation name="IM_smoothstep_float_genglsl" nodedef="ND_smoothstep_float" file="mx_smoothstep_float.glsl" function="mx_smoothstep_float" target="genglsl" />
<implementation name="IM_smoothstep_vector2_genglsl" nodedef="ND_smoothstep_vector2" file="mx_smoothstep_vector2.glsl" function="mx_smoothstep_vector2" target="genglsl" />
<implementation name="IM_smoothstep_vector3_genglsl" nodedef="ND_smoothstep_vector3" file="mx_smoothstep_vector3.glsl" function="mx_smoothstep_vector3" target="genglsl" />
<implementation name="IM_smoothstep_vector4_genglsl" nodedef="ND_smoothstep_vector4" file="mx_smoothstep_vector4.glsl" function="mx_smoothstep_vector4" target="genglsl" />

<!-- <luminance> -->
<implementation name="IM_luminance_color3_genglsl" nodedef="ND_luminance_color3" file="mx_luminance_color3.glsl" function="mx_luminance_color3" target="genglsl" />
Expand Down
8 changes: 0 additions & 8 deletions libraries/stdlib/genmsl/mx_smoothstep_vector2.metal

This file was deleted.

9 changes: 0 additions & 9 deletions libraries/stdlib/genmsl/mx_smoothstep_vector3.metal

This file was deleted.

10 changes: 0 additions & 10 deletions libraries/stdlib/genmsl/mx_smoothstep_vector4.metal

This file was deleted.

3 changes: 0 additions & 3 deletions libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,6 @@

<!-- <smoothstep> -->
<implementation name="IM_smoothstep_float_genmsl" nodedef="ND_smoothstep_float" file="mx_smoothstep_float.metal" function="mx_smoothstep_float" target="genmsl" />
<implementation name="IM_smoothstep_vector2_genmsl" nodedef="ND_smoothstep_vector2" file="mx_smoothstep_vector2.metal" function="mx_smoothstep_vector2" target="genmsl" />
<implementation name="IM_smoothstep_vector3_genmsl" nodedef="ND_smoothstep_vector3" file="mx_smoothstep_vector3.metal" function="mx_smoothstep_vector3" target="genmsl" />
<implementation name="IM_smoothstep_vector4_genmsl" nodedef="ND_smoothstep_vector4" file="mx_smoothstep_vector4.metal" function="mx_smoothstep_vector4" target="genmsl" />

<!-- <luminance> -->
<implementation name="IM_luminance_color3_genmsl" nodedef="ND_luminance_color3" file="../genglsl/mx_luminance_color3.glsl" function="mx_luminance_color3" target="genmsl" />
Expand Down
348 changes: 270 additions & 78 deletions libraries/stdlib/stdlib_ng.mtlx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<nodegraph name="NG_marble1">
<smoothstep name="smoothstep_float" type="float"/>
<smoothstep name="smoothstep_color3" type="color3">
<input name="low" type="float" nodename="smoothstep_float"/>
</smoothstep>
<output name="out_float" type="float" nodename="smoothstep_float"/>
<output name="out_color" type="color3" nodename="smoothstep_color3"/>
</nodegraph>
<standard_surface name="SR_marble1" type="surfaceshader">
<input name="base" type="float" nodegraph="NG_marble1" output="out_float"/>
<input name="base_color" type="color3" nodegraph="NG_marble1" output="out_color"/>
</standard_surface>
<surfacematerial name="Marble_3D" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_marble1"/>
</surfacematerial>
</materialx>

0 comments on commit 1b3a99e

Please sign in to comment.