Comment
Comment by madez
I was surprised to see that many people didn't know how to define a step function. One way to do it is: size_of_jump*max(0, sign(x-position_of_jump)). Also, max(0, sign(x-position)) allows you to switch on and off other parts of your function like a high frequency sine that can spray an area.