-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan: PointLight2D shadows only partially appear #55806
Milestone
Comments
Calinou
changed the title
Godot 4 PointLight2d shadows only partially appear.
Vulkan: PointLight2D shadows only partially appear
Dec 11, 2021
this call to draw_list_begin in light_update_shadow seems to clear the entire shadow atlas instead of the rect that is supposed to be drawn to: godot/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp Lines 1555 to 1561 in bdf8340
|
89 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
v4.0.dev.20211210.official [21b8199]
System information
Kubuntu 21.04, NVIDIA GTX1080, X11, nvidia-driver-470, Vulkan clustered and mobile, Intel i7-7700
Issue description
For me only a partial pointlight2d shadow is generated, and only from certain directions:
And no shadow from other directions:
Directional shadows work perfectly:
Same result on both clustered & mobile. Changing the occluder shape has no effect.
Have tested on the last 3 builds, and on the oldest build up on the tuxfamily download list.
Steps to reproduce
Create a new project, make a new 2d scene and add a background (sprite or polygon2d), PointLight2d and texture, LightOccluder2d and occluder polygon.
Turn on shadows on the light and move it around the occluder.
Minimal reproduction project
point2dshadows.zip
The text was updated successfully, but these errors were encountered: