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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
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.