One-shot shockwave post-process shader

I have a post-process shockwave effect that needs to render on demand. Using it as a standard post effect only renders it once.

How would I distort the whole scene every time the mouse is clicked, for example? Not looking for code, just good suggestions :wink:

Thanks!

You could add a value to your shader that indicates progression of the effect (Instead of using the built in time variable), update that value each frame depending on where in the ‘animation’ you want to be, and only enable it when you want to show the effect. That way you can set the effect to its start at any time you want.

Although I must say I’m not quite clear on why you’d want to use a post effect for a shockwave.

Yeah I know, it’s quite unusual.

Your method works perfectly, thanks!