Search Issue Tracker

Fixed in SRP master

Votes

0

Found in [Package]

9.0.0 - Preview.0

Issue ID

1225068

Regression

Yes

[XR][Android][URP][ShaderGraph] Shader graph is excluded from build but renders shadows on 2020.1.0a26 ShaderGraph targets #4940

Package: Shader Graph

-

Reproduction steps:
1. Open the user's provided case "SRP_MainTidy.zip"
2. In the Package Manager remove anything XR related
3. Build the Project to the devices specified

Expected result: water shader is not excluded from the Build
Actual result: water shader is excluded from the Build and only the shadows are rendered

Tested on these devices:

VLNQA00024, Xiaomi Mi 5 (MI 5), Android 7.0, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
VLNQA00313, Huawei Y6 Ⅱ Compact (HUAWEI LYO-L01), Android 5.1, CPU: MediaTek MT6735, GPU: Mali-T720

Reproduces on: Shader Graph 9.0.0 - Preview.0 (2020.1.0a26, 2020.2.0a4)
Does not reproduce on: Shader Graph 4.10.0-preview (2018.4.19f1), Shader Graph 7.2.1 (2019.3.6f1), Shader Graph 8.0.1 (2020.1.0a26)

Notes:
-Could not test on iOS due to the Build failing
-Issue does not reproduce in the Editor
-This seems to be the error that is causing the shader to not compile:

Error building Player: Shader error in 'Shader Graphs/Water_Basic': undeclared identifier 'GetWorldSpaceNormalizeViewDir' at line 2512 (on gles3)

Compiling Vertex program with STEREO_MULTIVIEW_ON
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_LIGHTMAP_DLDR_ENCODING
Disabled keywords: INSTANCING_ON UNITY_USE_NATIVE_HDR UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF2 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_VIRTUAL_TEXTURING

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.