Smoothstep: The most useful function

  Рет қаралды 61,511

The Art of Code

The Art of Code

4 жыл бұрын

The smoothstep function is used all the time in shader creation so I made a video about exactly how this function works, and how to derive it yourself.
Twitter: @The_ArtOfCode
Facebook: / theartofcode
Patreon: / theartofcode
ShaderToy: www.shadertoy.com/user/BigWIngs
PayPal Donation: paypal.me/theartofcode
For a more indepth derivation of this function, check out 'Interpolation for Dummies':
• Interpolation for Dumm...
To see what you can do by drawing ONE line after you have folded space, check out this video on the Koch fractals: • Shader Coding: KIFS Fr...

Пікірлер: 129
@Jhat
@Jhat 4 жыл бұрын
I came to this channel to learn shader programming, and over several videos, you have fundamentally changed the way I look at math. I cannot thank you enough!
@ashastra123
@ashastra123 4 жыл бұрын
I suggest you put the name (Smoothstep function) in the title because I know a lot of people are interested in this, and it'll be easier to find.
@Vityaf
@Vityaf 3 жыл бұрын
Why I'm watching this at 3 A.M.?
@E1nherj
@E1nherj 4 жыл бұрын
Great and easy to follow explanation of the function. Thank you.
@krezkort
@krezkort 2 жыл бұрын
My brain hurts, how is everything a float: including the 2d coordinates and the gradients? I must be thinking about these backwards somehow
@_nimrod92
@_nimrod92 2 жыл бұрын
Fun Fact this is what Soft Clipping is in Music Production
@moonhowler667
@moonhowler667
Since sin/cos algorithms have been optimized to Agrippa and back, wouldn't it be better to just lerp over a cos? You've essentially built an offset quarter cycle cosine, though not incredibly accurate for that purpose. If this were in any way faster than current sin/cos algos, it'd have been adapted into one by now. The upshot is, even if a given cos function is less efficient than this, you'd actually get a proper
@Pavel-wj7gy
@Pavel-wj7gy Жыл бұрын
I never thought Bill Burr is so good at trigonometry!
@realcygnus
@realcygnus 4 жыл бұрын
Bud its ALL priceless, especially the nitty gritty math details imo. Superb content as always !
@rokolczuk
@rokolczuk 4 жыл бұрын
great stuff! Thanks!
@8-P
@8-P 4 жыл бұрын
That was exceptionally well put together. I wish we had such tools back in school, would have helped alot to visualize functions in the early years.
@halian.vilela
@halian.vilela 4 жыл бұрын
Man, this demonstration in the beginning is probably what lacks in almost all math classes that I've seen out there... really, really amazing!
@varomix
@varomix 2 жыл бұрын
I wish this was the way math was thought when I was at school, I hope this is how is thought today, great video, more subjects like this would be great to understand the basics, thank you
@TheMastersArmoury
@TheMastersArmoury 3 жыл бұрын
Literally the most underrated shader programming teacher on the internet. Always digging up these dusty old articles on shaders and it feels like such a huge undertaking. I'm as interested in shaders as this guy is and I had nowhere to output that fascination and craving to learn and now that I found this channel I can fully apply myself by listening to what you have to say. This guy is a must for visual learners. Most shader teachers on youtube are just showing you their work and calling it a tutorial, this guy is the science teacher of shaders. KEEP doing it. The shader community is WAY TOO SILENT and mass respect for making this knowledge free. Mass respect. Stay save man.
@braveitor
@braveitor 4 жыл бұрын
Super interesting. You make difficult concepts very easy to understand. If I had had a teacher like you back in my high school days, I'd have enjoyed maths much more. Thanks!
@betterbelikeme
@betterbelikeme 4 жыл бұрын
I find this generally usefull not only for shader artists. You are great. Thanks a bunch
@monx
@monx Жыл бұрын
this channel is an absolute diamond in the rough
@ppscvalentin
@ppscvalentin Жыл бұрын
Beautifully explained! Thank you! I spend quite a number of hours trying to wrap my head around what smoothstep, mix and clamp
@erfansh1925
@erfansh1925 4 жыл бұрын
Your explanations are so easy to understand
@shire7949
@shire7949 Жыл бұрын
Wow, didn't understand it all probably but it helped so much, thanks.
Shader Coding: Feathers in the Wind - Part 2
38:26
The Art of Code
Рет қаралды 8 М.
An In-Depth look at Lerp, Smoothstep, and Shaping Functions
8:39
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 36 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4,4 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 121 МЛН
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 16 МЛН
اها 😅😂
0:13
عز تيوب Ezz Tube
Рет қаралды 9 М.
Value Noise Explained!
16:21
The Art of Code
Рет қаралды 33 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,4 МЛН
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 914 М.
Ray Marching for Dummies!
29:46
The Art of Code
Рет қаралды 232 М.
Superpositions, Sudoku, the Wave Function Collapse algorithm.
14:28
Martin Donald
Рет қаралды 678 М.
So I Made A Water Shader In Godot 4 And It Was Quite Simple
11:32
My Most Controversial Integral
4:35
BriTheMathGuy
Рет қаралды 49 М.
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 36 МЛН