Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2020.3
2020.3.6f1
2021.1
2021.2
Issue ID
1340751
Regression
No
[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
Reproducible devices:
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)
Notes:
- Does not reproduce on Windows Standalone
- Does not reproduce on macOS Standalone
-
AliceWasNeverHere
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.
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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 2022.1):
Fixed in version 2022.1.0a11