|
|
|
|
|
|
|
|
|
|
public static void SetRenderTarget(CommandBuffer cmd, RenderTargetIdentifier colorBuffer, RenderTargetIdentifier depthBuffer, ClearFlag clearFlag, Color clearColor, int miplevel = 0, CubemapFace cubemapFace = CubemapFace.Unknown, int depthSlice = 0) |
|
|
|
{ |
|
|
|
cmd.SetRenderTarget(colorBuffer, depthBuffer, miplevel, cubemapFace); |
|
|
|
cmd.SetRenderTarget(colorBuffer, depthBuffer, miplevel, cubemapFace, depthSlice); |
|
|
|
|
|
|
|
if (clearFlag != ClearFlag.None) |
|
|
|
cmd.ClearRenderTarget((clearFlag & ClearFlag.Depth) != 0, (clearFlag & ClearFlag.Color) != 0, clearColor); |
|
|
|