From a29fffa93dc66ff45589f8fd1f8584f7bcb9fdad Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 05 二月 2026 18:41:17 +0800
Subject: [PATCH] h5 tcp switch to websocket
---
Main/Component/UI/Effect/PostEffectsBase.cs | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Main/Component/UI/Effect/PostEffectsBase.cs b/Main/Component/UI/Effect/PostEffectsBase.cs
index 72294cd..30e544e 100644
--- a/Main/Component/UI/Effect/PostEffectsBase.cs
+++ b/Main/Component/UI/Effect/PostEffectsBase.cs
@@ -109,8 +109,9 @@
protected bool CheckSupport (bool needDepth)
{
isSupported = true;
- supportHDRTextures = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBHalf);
- supportDX11 = SystemInfo.graphicsShaderLevel >= 50 && SystemInfo.supportsComputeShaders;
+ // Unity 2022+ - Modern devices support HDR and compute shaders
+ supportHDRTextures = true;
+ supportDX11 = true;
// if (!SystemInfo.supportsImageEffects)
//{
@@ -118,10 +119,10 @@
// return false;
// }
- if (needDepth && !SystemInfo.SupportsRenderTextureFormat (RenderTextureFormat.Depth))
+ if (needDepth)
{
- NotSupported ();
- return false;
+ // Modern Unity versions support depth textures by default
+ GetComponent<Camera>().depthTextureMode |= DepthTextureMode.Depth;
}
if (needDepth)
--
Gitblit v1.8.0