You need to ping-pong between two render target textures.
This thread should help you (there are a lot of other threads related to porting shadertoy shaders to Babylon):
You need to ping-pong between two render target textures.
This thread should help you (there are a lot of other threads related to porting shadertoy shaders to Babylon):