Godot Version
Godot 4.7.2
Question
Hi! I have a 2D pixel art scene with a PointLight coming through a window.It is a light with shadows enabled, animated with an AnimationPlayer (position track, very slow movement). The shadows cast by LightOccluder2D nodes jitter / vibrate while the light moves.
Setup:
- Godot 4.7.2 stable, renderer: [Forward+ / Compatibility]
- Stretch mode: canvas_items
- Light texture: 64 px, node scale about (18.9, 14.4), Texture Scale 1
- Shadow filter: None (also tried PCF5/PCF13)
What I already tried (no improvement):
- Disabling “Snap 2D Transforms to Pixel” and “Snap 2D Vertices to Pixel”
- Shadow filter PCF5 / PCF13 with different Filter Smooth values
- Increasing the 2D Shadow Atlas size
- Scaling the light down
- A canvas_item shader that snaps LIGHT_VERTEX and SHADOW_VERTEX to a pixel grid
Is this a known limitation of PointLight2D shadows (shadow map resolution)? Is there a recommended way to move a shadow-casting light slowly without the shadow edges jittering?