文档

Unity Engine

Download Unity

Unity Engine

ConfigureClear(Color, float, uint)

When the RenderPass starts, clear this attachment into the color or depth/stencil values given (depending on the format of this attachment). Changes AttachmentDescriptor.loadAction to RenderBufferLoadAction.Clear.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void ConfigureClear(Color clearColor, float clearDepth = 1, uint clearStencil = 0)

Parameters

clearColor

Color clear value. Ignored on depth/stencil attachments.

clearDepth

Depth clear value. Ignored on color surfaces.

clearStencil

Stencil clear value. Ignored on color or depth-only surfaces.