#Smoothstep
Voronoi cell based terrain demonstrating the value of curve blending / easing functions with continuous derivatives for smooth interpolation. Screenshot #1 - no blending. Screenshot #2 - smoothstep blending. Screenshot #3 - Ken Perlin's smootherstep blending.

#GameDev #WorldGen #Minecraft #Bedrock
November 18, 2026 at 11:47 AM
I love learning gamedev. I'm following a shaders tutorial that uses the "smoothstep" function, so I'd better learn what that is! "Smoothstep is a family of sigmoid-like easing functions commonly used for interpolation and clamping in computer graphics" Oh, okay, great, thought so, fantastic, thanks
November 15, 2026 at 10:12 AM
Think of it as a soft switch: 0 below the lower threshold, 1 above the upper one, with a smooth ramp between. In a shader, that can turn a hard edge into a gentle fade. registry.khronos.org/OpenGL-Refpa...
smoothstep - OpenGL 4 Reference Pages
registry.khronos.org
November 15, 2026 at 10:47 AM
- Replaced the per-face (face, u, v) hash with a three-octave trilinear value-noise field sampled at the world-space (x, y, z).
- Integer-only: lattice hashing, smoothstep interpolation, and i128 weighting — no f64.

wow, last time I opened this game it looked like this:
November 7, 2026 at 8:41 AM
How do we turn the whole board grey when someone casts Stone?

One post-process material on the camera. It measures each pixel's distance on the table from the pebble, and C++ moves that ring every frame.

Shader and code in the images.

#gamedev #UnrealEngine #indiedev
November 6, 2026 at 3:05 PM
It isn't a plain threshold - it's smoothstep(0.60, 0.88) on Rec.709 luma, multiplying the colour rather than subtracting. A hard step() popped: in a dark forest with moving firefly and lantern highlights, pixels crossed the line frame to frame and the bloom crawled along edges.
November 3, 2026 at 7:06 AM
The acceleration throughout the animation is currently done with smootherstep (quintic smoothstep) which is working nicely and likely going to be kept.

en.wikipedia.org/wiki/Smooths...

The top speed for the loop could be reduced but we're getting mixed feedback about that aspect of it.
Smoothstep - Wikipedia
en.wikipedia.org
October 19, 2026 at 6:25 AM
Nice iris. Another way to avoid the stretched circle without derivatives: scale uv.x by the aspect (SCREEN_PIXEL_SIZE.y / SCREEN_PIXEL_SIZE.x), then drive the radius from one 0 to 1 uniform you tween, with a smoothstep for a soft edge.
October 10, 2026 at 10:14 AM
I use the smoothstep function to smooth the distance between the particles :)
October 3, 2026 at 7:10 PM
vec3 d=abs(vec3(FC.xy*2.-r,r)/r.x*2.),p=vec3(0,0,t),f=p;float c,i,j,v,m;for(;i<1e2;i++){for(j=.05;j<1.;j+=j)f+=abs(dot(sin(j*p*16.+t*.5+f.z),vec3(.01)))/j*1.5;v=.03+abs(2.-f.y)*.2;p+=d*v;f=p;c+=1./v;}m=pow(smoothstep(.06,.6,tanh(c/6e3)),.5);o=mix(vec4(.1,.1,.4,1),vec4(1),m);
September 28, 2026 at 11:42 AM
We made a free shader series, Your First Shader from ZERO in Godot 4:

gdquest.com/library/firs...

You will create an animated portal step by step and learn reusable techniques like drawing procedural shapes, create masks, use smoothstep() to control transitions, draw gradients, animate, and more.
September 12, 2026 at 12:58 PM
Stop writing 1.0 - smoothstep(a, b, x)
And do smoothstep(b, a, x)
September 11, 2026 at 12:19 AM
Which connector style is your favorite? 👀 Straight, Bezier, Orthogonal or Smoothstep?
Which connector style would you use in your node editor blueprints ?
#GameDev #IndieDev #GameDevelopment #VisualScripting #NodeEditor #GameDevTools
September 8, 2026 at 1:33 PM
So, yeah... took a minute or two to wire that up in Blender, and I'm like... hey look, line drawing algorithm. (I use smoothstep with a little difference trickery to draw the edge)
September 5, 2026 at 11:37 PM
Several of my shader nodes are named "Smooth" something, most because they're light reconfigurations of the Smoothstep function, but setup for different drawing cases. This is "Smooth" because it's perceptually smoother than the normal hue circle. No dark band for blue.
September 2, 2026 at 11:23 PM
Fade in and out with a variable mid-point (0.9 here):

float fade = smoothstep(0.0, 0.9, t) * smoothstep(1.0, 0.9, t);
August 25, 2026 at 10:44 PM
Interactive example:
fragcoord.xyz/s/flz6sey3
Fade in and out
Fading in and out with smoothstep by @Xor
fragcoord.xyz
August 25, 2026 at 10:44 PM
Started learning godot shaders and it's so satisfying to see stuff actually appear on screen 👀
#GodotShaders #gamedev #godot
March 12, 2026 at 2:11 PM
Wind Waker Water?
- Scroll a UV
- Plug it into some noise
- Smoothstep to isolate edges
- Voila, you have a basic procedural tileable caustics texture module

Grab a couple of these, scroll and scale at different rates, layer them and lerp in some colors, and bang! procedural cartoon water!
July 11, 2026 at 11:05 AM
but if you keep those same two values, but smoothstep x only for the lerp part, instead you get:

Ax(1 - (3x² - 2x³)) + B(x - 1)(3x² - 2x³)
= A(2x⁴ - 3x³ + x) + B(-2x⁴ + 5x³ - 3x²)
= 2(A - B)x⁴ - (3A - 5B)x³ - 3Bx² + Ax
December 6, 2024 at 9:12 PM
for smooth cutting take exponential smax for associativity property, bezier is expensive, but tempting and waste hours on tweaking numbers in smoothstep 😩
March 12, 2026 at 3:33 PM
After a bit of playing, I'm sold on a Lanczos-2 for the luma, and a box filter with quarter-phase smoothstep edges for the chroma. Just the right balance of 🌈 and 😶‍🌫️. And along the way my Rust code got way way less horrible, with proper structs, slices, zips, maps, and match expressions.
November 28, 2024 at 7:40 PM
...but hey, also that wasn't the most direct or easiest answer to the problem. If you just use the first half of smoothstep (0.0-0.5), you'll get smooth acceleration to your target value, and we don't really care about the other end of the curve so whatever.
August 22, 2026 at 5:02 PM