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
- "Initialization Mode" and "Update Mode" drop-downs are not localized in the Custom Render Texture asset
- Switching Graphics Default or DevLook Profile to “NightSkyRenderingSettings Profile” throws “KeyNotFoundException” error in the Console window
- Section separator renders in the wrong place in Search Journaling and Archetypes windows
- [D3D12][UWP] Additional persistent shadows are drawn in UWP builds when using D3D12
- Search Journaling window link to Journal Manager documentation isn’t working
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)