文章目录 前言一、扭曲的分类1、特效中常见的扭曲效果(热扭曲)2、水体的特殊表现 二、实现思路1、扭曲材质赋于面片2、抓取当前一帧的图片内容3、获取屏幕坐标4、利用屏幕坐标对抓取的图片采样5、再采样张扰动贴图做扭曲 前言 Unity中Shader的扭曲 注意:扭曲效果比较消耗手机性能 一、扭曲的分类 1、特效中常见的扭曲效果(热扭曲) 类似于透过 火焰 看火焰后的物体,火焰后的物体扭曲 2、水体的特殊表现 类似于透过 水 看水中的物体,水中物体的扭曲 二、实现思路 1、扭曲材质赋于面片 2、抓取当前一帧的图片内容 3、获取屏幕坐标 4、利用屏幕坐标对抓取的图片采样 5、再采样张扰动贴图做扭曲