Hi Mhaze. Simple answer, divide the modulo output by its step value (input 2). So for example, I'm using a step value of 0.1, 0.1 divded by 0.1 = 1, the top end of your ramp. I was getting some nice effects last night with mixing between two sets of this function, with a PF modulating the modulo step value.
I don't have a release version of TG to be able to upload a clip. And besides, this is Efflux's technique, which I don't want to hijack. I just wanted to engage in a discussion on how to achieve this effect outside of using the strata shader, which Efflux has demonstrated with the added bonus of being able to have different spacings between steps. I may start another thread with a function set that has more options at a later time.
Cheers
Jon