GL.Clear(false, true, Color.black);
官网解释:清除当前的渲染缓冲区。
public static void Clear(bool clearDepth,bool clearColor, Color backgroundColor,float depth = 1.0f);
clearDepth | 深度缓冲区是否应该清除? |
clearColor | 应该清除颜色缓冲区吗? |
backgroundColor | 颜色,以明确的,仅用于clearColor 为true 。 |
depth | 清除Z缓冲区的深度,仅在clearDepth is时使用true 。 |