min and max picks the smallest/largest values respectively, so if you wish to remove negatives you can try min(0, x) where x is the variable of what you want, so if it goes below 0 it will be smaller so 0 gets picked instead
This video is for people who know desmos, but want to apply math concepts to other software. (specifically shader nodes) I've got some crazy advanced videos on my channel though, in case you want to see some interesting math.
I made the same but in GLSL
I’m bad at Desmos, does anybody know how to use the maximum/minimum operation? I want to remove negatives so I can make a square SDF.
dont you litterally go max() or min()
to remove negatives you do max(0, x), since if x is negative it will be clamped
min and max picks the smallest/largest values respectively, so if you wish to remove negatives you can try min(0, x) where x is the variable of what you want, so if it goes below 0 it will be smaller so 0 gets picked instead
Bruh this is pointless. Try making code the automates this. And it will be a quadrillion times more interesting.
This video is for people who know desmos, but want to apply math concepts to other software. (specifically shader nodes)
I've got some crazy advanced videos on my channel though, in case you want to see some interesting math.