motionBlur原理

参考:https://blog.csdn.net/weixin_37994402/article/details/79565946?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param

创建一个RT

1. 每次渲染时(OnRenderImage),按照一个透明度值Blur Amount,将当前渲染画面放到RT中

2. 将当前RT输出到dest,进行下面处理(比如说还有其他后处理,或者是UI渲染)

代码:

Graphics.Blit(src, accumulationTexture, mat);
Graphics.Blit(accumulationTexture, dest);

重复1、2,如果当前场景运动时,就会在RT上不断的以Amount的透明度叠加,画面效果就呈现出一个残影的效果

posted on 2020-08-27 11:14  胖福  阅读(459)  评论(0编辑  收藏  举报

导航