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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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)