/// <summary> /// Resolve the camera color buffer only if the MSAA is enabled and the pass is executed in before transparent. /// </summary> /// <param name="cmd"></param> /// <param name="hdCamera"></param> protected void ResolveMSAAColorBuffer(CommandBuffer cmd, HDCamera hdCamera) { if (!isExecuting) { throw new Exception("ResolveMSAAColorBuffer can only be called inside the CustomPass.Execute function"); } if (IsMSAAEnabled(hdCamera)) { currentRTManager.ResolveMSAAColor(cmd, hdCamera, currentRenderTarget.cameraColorMSAABuffer, currentRenderTarget.cameraColorBuffer); } }