How do I iterate with texture in ShaderMaterial, as in the following example

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):

2 Likes