Version: 2020.1

CommandBuffer.ClearRenderTarget

切换到手册
public void ClearRenderTarget (bool clearDepth, bool clearColor, Color backgroundColor, float depth);

参数

clearDepth 应清除深度缓冲区?
clearColor 是否应清除颜色缓冲区?
backgroundColor 要清除的颜色。
depth 要清除的深度(默认值为 1.0)。

描述

添加“清除渲染目标”命令。