void SetRenderBuffer(ScriptableRenderContext context, Camera camera) { bool isClearColor, isClearDepth; GetClearFlags(camera, out isClearColor, out isClearDepth); //if (camera.cameraType == CameraType.Game) { CmdBuff.SetRenderTarget(renderBuffers[0], renderBuffers[2]); CmdBuff.ClearRenderTarget(isClearDepth, isClearColor, camera.backgroundColor); } context.ExecuteCommandBuffer(CmdBuff); CmdBuff.Clear(); }