Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.3.0a1
2019.1.0a1
2019.1.7f1
2019.2.0a1
2019.3.0a1
Issue ID
1164079
Regression
Yes
[hlsl2glsl -> HLSLcc][iOS][Metal]GameObjects with Mobile shaders flip&shrink Player when the scene also includes Legacy shaders
How to reproduce:
1. Open the attached project
2. Go to the Hierarchy window-> disable "Standard" GameObject
3. Build for iOS and deploy the Xcode project to the iOS device
Actual: Only three out of five cubes are visible, the aspect ratio is upside down and shrinks (see the photos attached)
Expected: All cubes are visible and the aspect ratio is normal
Reproducible with: 2018.3.0a1, 2018.3.0a11, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11
Reproducible with:
iPad 4 Generation (iOS 10.3.3)
iPhone 5C (iOS 9.3.2)
Reproducible only with: Metal
Not reproducible with: 2017.4.31f1, 2018.2.21f1
Not reproducible with:
iPad mini 2 (iOS 11.4.1)
iPhone 7 (iOS 10.2)
Not reproducible with Android
Note: if "Standard" GameObject (with standard shader) is enabled in the scene the Player is not fliped or shrinked
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2019.3.X):
The bug appeared due to shader compiler change. Can be worked around by adding #pragma prefer_hlsl2glsl gles into the legacy shader. However, as the shader pass causing this is fixed function, users need to convert it to vertex/fragment shader by clicking Generate Shader Code (button is disabled for built-in shaders, so to do this you need to copy/paste legacy shader code into a new shader file)