Skip to content

fix: make smoothstep and step available as chained methods on vec nodes#2135

Merged
Methuselah96 merged 1 commit intothree-types:masterfrom
HannahLilyW:fix/2134-smoothstep-step-vec
May 9, 2026
Merged

fix: make smoothstep and step available as chained methods on vec nodes#2135
Methuselah96 merged 1 commit intothree-types:masterfrom
HannahLilyW:fix/2134-smoothstep-step-vec

Conversation

@HannahLilyW
Copy link
Copy Markdown
Contributor

Fixes #2134

smoothstep and step were only typed as chained methods on Node<"float">, despite working correctly at runtime on all vector types. This adds missing extensions for vec2, vec3, and vec4, and also adds vector overloads to the standalone smoothstep, smoothstepElement, step, and stepElement functions.

The fix follows the same pattern already used by clamp.

Tests added in tsl-testing/node-type.test.ts.

Copy link
Copy Markdown
Contributor

@Methuselah96 Methuselah96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Methuselah96 Methuselah96 merged commit d073206 into three-types:master May 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

smoothstep and step not available as chained methods on vec2/vec3/vec4 nodes

2 participants