You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are implementations for float (after the example here). Should be relatively easy to make them generic:
procstep*(a, x: float): float=if x < a:
0.0else:
1.0procsmoothstep*(a, b, x: float): float=# Scale, and clamp x to 0..1 rangelet x =clamp((x - a) / (b - a), 0.0, 1.0)
x * x * (3.0-2.0* x)
Then update shady to add these functions to glslFunctions.
Activity
treeform commentedon Sep 3, 2024
Is it same as
SpotlightKid commentedon Sep 3, 2024
Yes.
SpotlightKid commentedon Sep 19, 2024
Do you need any more info to be able to implement this?
SpotlightKid commentedon Oct 16, 2024
Any progress on this?
treeform commentedon May 25, 2026
Thank you for the issue. I have added smooth step over in this PR: #86