motionBlur原理
创建一个RT
1. 每次渲染时(OnRenderImage),按照一个透明度值Blur Amount,将当前渲染画面放到RT中
2. 将当前RT输出到dest,进行下面处理(比如说还有其他后处理,或者是UI渲染)
代码:
Graphics.Blit(src, accumulationTexture, mat);
Graphics.Blit(accumulationTexture, dest);
重复1、2,如果当前场景运动时,就会在RT上不断的以Amount的透明度叠加,画面效果就呈现出一个残影的效果