mirror of
https://github.com/godotengine/godot
synced 2024-11-02 10:25:48 +00:00
61b3eb3b28
When using the default setting (layer 1 set only) nothing is stored in the tscn file for a Light2D, hence it relies on the value in the constructor.
The problem is the constructed value is 1 in Light2D, and -1 in RasterizerCanvas::Light. -1 results in all bits being set so all occluders are shown, rather than just those in layer 1.
This PR changes Rasterizer::Canvas constructor to set to 1. An alternative is to have -1 as the value for layer 1 throughout.
(cherry picked from commit
|
||
---|---|---|
.. | ||
audio | ||
camera | ||
physics_2d | ||
physics_3d | ||
rendering | ||
xr | ||
audio_server.cpp | ||
audio_server.h | ||
camera_server.cpp | ||
camera_server.h | ||
display_server.cpp | ||
display_server.h | ||
navigation_server_2d.cpp | ||
navigation_server_2d.h | ||
navigation_server_3d.cpp | ||
navigation_server_3d.h | ||
physics_server_2d.cpp | ||
physics_server_2d.h | ||
physics_server_3d.cpp | ||
physics_server_3d.h | ||
register_server_types.cpp | ||
register_server_types.h | ||
rendering_server.cpp | ||
rendering_server.h | ||
SCsub | ||
server_wrap_mt_common.h | ||
xr_server.cpp | ||
xr_server.h |