| | |
| | | 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) |
| | | //{ |
| | |
| | | // 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) |