Search Issue Tracker
By Design
Votes
0
Found in [Package]
trunk
Issue ID
1413494
Regression
No
[HDRP] Realtime shadow appears and disappears when slightly moving light object
The bench seen in the videos loses its shadow when I move my lights by 2 millimeters(video). The light is not blocked by anything. I can not understand why the shadow is disappearing, apologies if its by my mistake. This project is using APV but you dont have to bake to reproduce the issue.
Repro:
1) Download Spotlight project, APV branch. https://github.com/iM0ve/Spotlight-HDRP/tree/APV
2) Open main scene (day or night not necessary)
3) Navigate to the light above the bench
4) Optionally - disable all other lights
5) Optionally - disable all emissive lamp objects
5) Select the light and change shadow to refresh every frame
6) Change Y position from 4.1 to 4.03
Result: Shadow appears
Expected: Shadow should always be visible
Also the shadow appears if I change spotlight resolution from 512 to 1k. Tried investigating with punctual light debug, but it looks like the atlas doesnt look different
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
- Ligtmaps disappear when entering the Play Mode
- [Vulkan] [Android] Visual corruption is visible on some Android devices in the Player when Depth Of Field is enabled in Global Volume and the Vulkan Graphics API is selected
- An image bleeds out of the borders of a Mask when the project is opened with the iOS Build Support module
- Shadows do not appear on the Material with a custom shader which uses screen space shadow map in HDRP when Ray Traced Shadows are enabled
- An emoji is not shown in the UI Builder Viewport and the Game view when it is placed in the Labels text attribute and Usage Hints is set to Dynamic Color
Resolution Note:
It is simply an aliasing issue, when the shadow cone is so large the amount of texels that each object occupuies is very limited and therefore aliasing happens. In this case the position is just an unfortunate one. This makes the process miss the occluder and it is so delicate that you can see how even changing biases will lead to a different result.
Generally in this cases I'd suggest either using a custom spot angle or increase resolution.