Search Issue Tracker
Fixed in 11.0.0
Votes
0
Found in [Package]
9.0.0-preview.35
Issue ID
1260261
Regression
No
URP non directional lights have no effect on WebGL build when it uses WebGL 1.0 graphics api
To reproduce:
1. Open attached project ("case_1260261.zip")
2. Enter Play mode > observe the Scene view
3. Build and run > observe the built WebGL player
Expected result: The built player has the same lighting as the Editor
Actual result: The built player has no lighting
Reproducible in: 2019.4.3f1, 2020.1.0b14, 2020.2.0a16
Could not test in: 2018.4.24f1 (Built player didn't render anything), 2020.2.0a17 (Due to another bug - case 1259936)
Reproducible in package versions: 7.0.0, 9.0.0-preview.35
Could not test in package versions: 0.1.21, 4.10.0 (Built player didn't render anything)
Notes:
1. When using WebGL 2.0 everything works as expected
2. Issue not reproducible on Android build with OpenGL ES 2.0
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
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Resolution Note (fix version 11.0.0):
WebGL1 does not support variable for loops, and URP was using a for loop with a number of lights variable condition to iterate over the lights. A fix has been pushed to the URP package. This depends on some recent changes to the shader compiler.