How to change the frequency of GlitchPass?

Hi guys, using the GlitchPass is possible someway to manipulate the frequency of the glitch?
I would like to reduce the frequency so it happens less often and also in a random way (not fixed interval).
Any idea?

The property curF controls how often the glitch occurs. The idea is to change the way how the variable is incremented. Right now, this happens when the pass is going to be rendered:

The idea is to remove this line an update curF in the above if statements. The first and second branches perform the actual glitch, the third branch represents the stationary phase. So incremented curF in the first and second if statement by one. In the third statement incremented it by a smaller value. The lower the value, the longer the phase where nothing happens.

Demo: https://jsfiddle.net/jdw0372t/

1 Like

Thank you! Perfect