Search Issue Tracker
Third Party Issue
Votes
1
Found in
2022.3.12f1
2023.1.19f1
2023.2.0b16
2023.3.0a12
6000.0.0b11
Issue ID
UUM-55802
Regression
No
With Rendering Path set to Forward+ the Spot Light illuminates GameObjects only when the Scene/Game view window is shrinked
How to reproduce:
1. Open the “ForwardPlusCustomShaderBug“ project
2. Open the “Demo“ scene
3. Enable the "Custom Shader" GameObject and disable the "Lit" GameObject in the Inspector window
4. Set the Rendering Path to Forward+
5. Resize the Scene view window
6. Observe the Spot Light behavior in the Scene view window
Expected result: The Spot Light illuminates the “Sphere“ and “Plane“ GameObjects regardless of the Scene view window size
Actual result: The Spot Light illuminates the “Sphere“ and “Plane“ GameObjects only when the Scene view window is shrinked
Reproducible with: 2022.3.12f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12
Could not test with: 2021.3.32f1 (Forward+ is not an option for Rendering Path)
Reproducible on: macOS 13.5.2 (Intel)
Not reproducible on: No other environment tested
Notes:
- The same behavior happens when resizing the Game view window
- The Spot Light also starts illuminating the GameObjects when zoomed closer to them
- The Spot Light also starts illuminating the GameObjects when the Outer Spot Angle is more than 90 depending on the Scene view window size
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
- Usage of Adaptive Probe Volumes throws a lot of IndexOutOfRangeException and Assertion Failed errors
- Prefab overrides don't recover missing managed references
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
Resolution Note:
Hi Ned,
URP Forward+ relies on normalized screen space UVs to select the correct tile for lighting.
In the custom shader, ensuring that the input data is set correctly fixes the corruption. (E.g. Adding l.43 lightingInput.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV ( input . positionCS ) ; )
Hope this helps !