Hi, i’m trying to make a distorted effect like water, glass, ice and so on in a 2D project working with sprites.
I’ve followed several guides but no one works for me.
I’m working with Unity 2021.2.10f1 and URP 12.1.4
This the shader:
This is the URP configuration:
This is the Sprite GO:
And this is the output:
a gray square over all. What i’m trying is distort all under the gray square. What’s wrong? thanks for the help
Are you looking for something like this?
Lo-renzo, thanks for the links. They helped me get the result i wanted. But i found a strange behaviour. I copied exactly all the values present URP and 2dRenderer settings, i copied the shader graph and i copied the sprites and the camera settings. But if the alpha component of the “Heat Haze” sprite is 255, the distortion effect works badly, while if i decrease the alpha component the distortion effect is attenuated and applied well. In the example of the first link, the alpha component of the Heat Haze object is 255 and it looks good. In my testing project, what i see if the alpha is 255 is in image 1 and 2, while if value is less then 255 ( 213 in this case ) the results is good and you can see it in image 3