Search Issue Tracker
Fixed
Fixed in 2023.1.0a19
Votes
0
Found in
2022.2.0a12
Issue ID
UUM-732
Regression
Yes
Shaders with #include "UnityCG.glslinc" fail to run when building for WebGL
Reproduction steps:
1. Open the attached project
2. Build and Run for WebGL
Expected result: Build runs successfully
Actual result: Build fails in the browser
Reproducible with: 2021.2.0b1, 2021.2.19f1, 2021.3.2f1, 2022.1.0f1, 2022.2.0a12
Not reproducible with: 2019.4.38f1, 2020.3.34f1, 2021.2.0a16
Note:
- build runs successfully after removing GameObject "Sphere (2)" from the scene
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 2023.1.0a19):
Fix WebGL shader preprocessor that caused errors for some shaders