The second example is for post process materials and uses the SceneTexture so it is slightly different, but the concept is the same in both examples. You just need to experiment with the texture(s) you use to distort the UVs of the main textures as the ones in the examples (the rainbow cloud) are meant to give a sort of fluid/water type distortion.