Command Buffers
May 17, 2022Less than 1 minute
Command Buffers
这是一个可以自己定义设置额外渲染命令的API,我们可以在渲染前完成一些操作,感觉有点像局部后处理,可以用到:
- 模糊折射
- 延迟灯光
- 延迟贴花
这个文章非常详细:
https://blog.unity.com/technology/extending-unity-5-rendering-pipeline-command-buffers
其中还有实例代码:https://blog-api.unity.com/sites/default/files/2015/02/RenderingCommandBuffers50b22.zip。
文档:
https://docs.unity3d.com/2021.3/Documentation/Manual/GraphicsCommandBuffers.html
https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Rendering.CommandBuffer.html