Search Issue Tracker
By Design
Votes
0
Found in
2019.3.3f1
2019.4
2020.1
2020.2
Issue ID
1261203
Regression
No
[Android][Vulkan] Objects are not Instanced when accessing ambient color
Reproduction steps:
1. Open the "New Scene" Scene in the attached "1261203.zip" project
2. Switch the build Platform to Android
3. In the Build Settings menu, enable Development build and Build and Run to an Android device
4. Inspect Frame Debugger for instanced shaders on the device
Expected result: there are fewer events and "Draw Mesh (instanced)" event is present
Actual result: there are more events and no instanced meshes drawn on the device
Reproduces on: 2019.4.5f1, 2020.1.0f1, 2020.2.0a18
Could not test on: 2018.4.26f1 (Custom Shader uses URP library, URP was not introduced)
Reproducible on:
VLNQA00320, Xiaomi - (Redmi Note 8 Pro), Android 9, CPU: MediaTek Helios G90T MT6785T, GPU: Mali-G76 MC4
----------, Google Pixel 3 XL (Pixel 3 XL), Android 10, CPU: NOT FOUND, GPU: Adreno (TM) 630
VLNQA00001, Google Pixel 2 (Pixel 2), Android 11, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00128, Samsung Galaxy Note8 (SM-N950F), Android 9, CPU: Exynos 9 Octa 8895, GPU: Mali-G71
Not reproducible on:
VLNQA00314, Lge Nexus 5X (Nexus 5X), Android 8.0.0, CPU: Snapdragon 808, GPU: Adreno (TM) 418
VLNQA00052, Xiaomi MI MAX (MI MAX), Android 7.0, CPU: Snapdragon 617 MSM8952, GPU: Adreno (TM) 510
-iPhone 8+ (iOS 12.0)
-iPhone XR (iOS 13.4.1)
-iPad Air 2 (iOS 11.0.3)
-iPad 9.7 6th gen (iOS 14.0b7)
Note: Not reproducible on Windows
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note (2020.2.X):
Shaders that don't use SH per instance should use "#pragma instancing_options nolightprobe".
Otherwise UNITY_SETUP_INSTANCE_ID should be use in the fragment shader.