首页 > 解决方案 > iPhone 6s 上不支持 Unity 的着色器

问题描述

我正在为 Android 和 iOS 制作游戏。这是一个非常简单的项目,因此所有材质都使用 LWRP Lit 着色器。我试图在 iPhone 6s 和 iPhone XR 上进行构建。在我的每台 Android 设备和 iPhone XR 上都运行良好。但是在 iPhone 6s 上,我在加载游戏场景之后就被图形伪影冻结了。

在 Xcode 中有这些错误:

一开始:

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/Lightweight Render Pipeline/ScreenSpaceShadows' - Setting to default shader.

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Debug/Waveform' - Setting to default shader.

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Debug/Vectorscope' - Setting to default shader.

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Debug/LightMeter' - Setting to default shader.

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Debug/Overlays' - Setting to default shader.

ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Debug/Histogram' - Setting to default shader.

最后(循环)

Execution of the command buffer was aborted due to an error during execution. Ignored (for causing prior/excessive GPU errors) (IOAF code 4)

现在我正在使用 Unity 2019.1.0a10,但之前我尝试使用 2018.3.0.11b 和 2018.2.17f1 进行构建。我也尝试了几个版本的 LWRP,但结果仍然相同;c

截图:

材质我对所有材质使用相同的设置

LWRP 设置

标签: iosunity3dshaderlwrp

解决方案


推荐阅读