Shader distortion in Unity (also using UV distortion)


Preface

Shader distortion in Unity


Note: The distortion effect consumes mobile phone performance

1. Distorted classification

1. Common distortion effects in special effects (thermal distortion)

Similar to looking through a flame at an object behind the flame, the object behind the flame is distorted

2. Special manifestations of water bodies

Similar to looking at objects in the water through water, the distortion of the objects in the water


2. Implementation ideas

1. Distort the material and assign it to the patch

2. Capture the image content of the current frame

3. Get screen coordinates

4. Use screen coordinates to sample the captured images

5. Resample the disturbance map for distortion

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/132718978