Help converting shader from a shadertoy


I’m trying to transfer this shader from shadertoy - Shader - Shadertoy BETA

But I can’t force it to leave a trace, all I could achieve was a sharp appearance and disappearance of the trace when pressed - PlayCanvas | HTML5 Game Engine.

I would be grateful if someone could help :upside_down_face: