Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
[Mobile] URP GameObjects with TerrainLit shader are rendered lighter than Lit
Steps to reproduce:
1. Open the attached project "1340751-Test.zip"
2. Attach a Mobile device
3. Build and run the "SampleScene" scene
Expected results: ground mesh and terrain are the same color
Actual result: the terrain is rendered lighter than ground mesh
Reproducible with: 2020.3.14f1, 2021.1.15f1, 2021.2.0b4, 2022.0a3
Could not test with: 2018.4.36f1, 2019.4.29f1 due to errors when downgrading
VLNQA00335, Samsung Galaxy S20 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77
VLNQA00286, Meizu - (PRO 5), Android 7.0, CPU: Exynos 7 Octa 7420, GPU: Mali-T760
VLNQA00313, Huawei Y6 Ⅱ Compact (HUAWEI LYO-L01), Android 5.1, CPU: MediaTek MT6735, GPU: Mali-T720
VLNQA00317, Vivo V1924A (V1924A), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00294, Oppo Reno Z 中国版 (PCDM10), Android 9, CPU: Mediatek MT6779 Helio P90, GPU: PowerVR Rogue GM9446
iPhone 6 (iOS 12.4.8)
iPhone 7 (iOS 12.3.1)
iPhone 12 Mini (iOS 14.1)
- Does not reproduce on Windows Standalone
- Does not reproduce on macOS Standalone
Dec 09, 2021 03:13
WebGl URP gameobjects with URP lit or terrainlit shaders are not rendered at all in 2021.2.5f1, though their collision meshes remain. Is it possible this "fix" or its backport may have introduced an incorrect data type? The Chrome browser spams its console with the following:
[.WebGL-00001F5A0C8B3100] GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow).
Isn't it also possible a mis-type of this sort may cause the now very common "Reduced additional punctual light shadows resolution…" spam in the Unity editor console for even the most basic of projects?
I'm a noob to coding, but feel a well-considered test suite could help to avoid this sort of bug introduction and regression so often within the Unity codebase.
Not intending to stomp on anyone; appreciate the heck out of the massive undertaking and would love to help if the code were not in a black box.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- The property of a component becomes read-only when it is bound to "PropertyStreamHandle"
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Resolution Note (fix version 2022.1):
Fixed in version 2022.1.0a11