还原截图逻辑
parent
e4cb087ef0
commit
780fa13daf
|
|
@ -457,12 +457,11 @@ namespace Gameplay
|
|||
screenTexture = RenderTexturePool.Instance.Create(SCREEN_SNAPSHOT, width, height);
|
||||
|
||||
// 先渲图
|
||||
CameraManager.Instance.SetMainCameraActive(false);
|
||||
Camera uiCamera = CameraManager.Instance.UICamera;
|
||||
uiCamera.gameObject.SetActive(false);
|
||||
uiCamera.targetTexture = screenTexture;
|
||||
uiCamera.Render();
|
||||
uiCamera.targetTexture = null;
|
||||
uiCamera.gameObject.SetActive(true);
|
||||
|
||||
#region 高斯模糊处理
|
||||
Material material;
|
||||
|
|
|
|||
Loading…
Reference in New Issue