Search Issue Tracker
By Design
Votes
1
Found in
2019.4
2019.4.4f1
2020.2
Issue ID
1264759
Regression
No
[Encoding/compression] Baked lighting results in bright blocky artifacts when Target Platform is set to Android or iOS
How to reproduce:
1. Open the attached 'URPDirectionalLightmapZeroDir.zip' project
2. Make sure that your Target Platform is set to Android in Build Settings
3. Press 'Generate Lighting' in the Window -> Rendering -> Lighting Settings
4. Observe the 'ZhuCheng_XinShanShi_08_wys' GameObject in the Game View
Expected result: 'ZhuCheng_XinShanShi_08_wys' GameObject does not contain white blocky artifacts
Actual result: 'ZhuCheng_XinShanShi_08_wys' GameObject contains white blocky artifacts
Reproducible with: 2019.4.6f1, 2020.1.0f1, 2020.2.0a19
Couldn't test: 2018.4.26f1 (Meshes are not present in the Scene View after downgrading)
Notes:
1. Reproducible using URP and built-in pipeline
2. Reproducible when GI cache and baked lighting data are cleared
3. Reproducible on macOS and Windows
4. Reproducible on Metal, DX11
5. Reproducible CPU Progressive Lightmapper; Can't test GPU Lightmapper because of the warnings thrown in the Console: 'OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_INVALID_KERNEL_ARGS'
6. Couldn't reproduce using built-in primitives
7. Artifacts are not present on lightmaps in Baked Lightmaps section of the Lighting Settings
8. Reproduces with None and Auto Filtering
9. Screenshot of the issue are attached in Edit
10. Reproducible when Target Platform is set to iOS/ Android; Not reproducible when Target Platform is set to Standalone
11. Reproducible with only Albedo map assigned
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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- Package Manager Filters (Status) dropdown is different color than Packages, Sort or Add package dropdowns
Resolution Note:
The user had incorrectly assigned a normal map to the metallic texture slot of the material; this resulted in a large multiplier being applied in the Android build case but not the PC due to differences in texture encoding used. The fix is to remove this texture from the metallic slot (and optionally assign to the normal map input instead) to prevent this from happening.