if i run the programm with an example image, the water effect is (animated) visible but: - it will be drawn scaled in the right upper corner. - the image is displayed mirrored.
( without the effect the image will displayed correctly )
wavemotion is some number it can be large or small how much you increment it by on the cpu when you send it to your shader is what matters it alters the speed and direction of the waves motion in x and y.
wavelength is obvious values below 1 will make wider waves above 1 smaller
magnitude is the distortion or height of the wave a value of 0 for none, 1 would be 0 to 1 texel distortion, 2 would be 0 to 2 texel wide distortions and so on ect…
As you can see The effect draws everything ( tiled background ) with a small wave effect. This gives a good underwater effect. Now the effect is working i see i have to split the layers who needs to have the effect. Otherwise doors and items/objects have the same wave effect.