Search Issue Tracker
By Design
Votes
3
Found in
2022.3.16f1
2023.3.0b1
6000.0.0b11
Issue ID
UUM-59476
Regression
No
[URP] Lighting effects leak through walls when playing the Build
Reproduction steps:
1. Open the attached “BugRepro” project
2. Build and Run the project (File > Build And Run)
3. Go to the location (shown in video) in the Player
4. Observe the Player screen
Expected result: The room is dark
Actual result: The room is lit by the light sources from other rooms
Reproducible with: 2022.3.16f1, 2023.3.0b1
Couldn’t test with: 2021.3.33f, 2023.2.4f1 - The Player fails to build due to compilation errors
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Comments (1)
-
mrc_akka
Aug 29, 2024 15:08
Reproduced with only one spot light through a wall in unity 6 (forward, forward+, and deffered)
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
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
- Asset Bundles non-deterministic behavior with CRCs and hash when a video has Transcoding enabled and Sprite Atlas has an override option enabled
- [Quality Hackweek] Errors "InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread" and "NullReferenceException" shown when switching build platforms with Muse Texture package installed
- "Importer(DefaultImporter) generated inconsistent result for asset" warnings are thrown when reimporting the "URP" texture
Resolution Note:
This scene has too many lights so some are not rendered with shadows. The limits are described here: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@17.0/manual/urp-universal-renderer.html.
The light count is all the lights inside the camera frustum it does not know which lights are obscured by walls etc.
If you want many lights on mobile then typically lights are baked. If the lights have to be realtime, then you could script the lights to be enabled based on where the camera is.