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.
The text was updated successfully, but these errors were encountered:
... so they can be used with shady.
Here are implementations for
float
(after the example here). Should be relatively easy to make them generic:Then update shady to add these functions to
glslFunctions
.The text was updated successfully, but these errors were encountered: