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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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 !