Version: 2022.3
言語: 日本語
public void ClearRenderTarget (bool clearDepth, bool clearColor, Color backgroundColor, float depth);
public void ClearRenderTarget (Rendering.RTClearFlags clearFlags, Color backgroundColor, float depth, uint stencil);

パラメーター

clearDepth Whether to clear both the depth buffer and the stencil buffer.
clearColor Whether to clear the color buffer.
clearFlags Which render targets to clear, defined using a bitwise OR combination of RTClearFlags values.
backgroundColor クリアするカラー
depth クリアするデプス (デフォルトは 1.0)
stencil Stencil to clear with (default is 0).

説明

"clear render target" コマンドを追加します。


Did you find this page useful? Please give it a rating: