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 bf54fa5a62a980f5c4339137f9e2c6147642962c)
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
audio | Loading commit data... | |
camera | Loading commit data... | |
physics_2d | Loading commit data... | |
physics_3d | Loading commit data... | |
rendering | Loading commit data... | |
xr | Loading commit data... | |
SCsub | Loading commit data... | |
audio_server.cpp | Loading commit data... | |
audio_server.h | Loading commit data... | |
camera_server.cpp | Loading commit data... | |
camera_server.h | Loading commit data... | |
display_server.cpp | Loading commit data... | |
display_server.h | Loading commit data... | |
navigation_server_2d.cpp | Loading commit data... | |
navigation_server_2d.h | Loading commit data... | |
navigation_server_3d.cpp | Loading commit data... | |
navigation_server_3d.h | Loading commit data... | |
physics_server_2d.cpp | Loading commit data... | |
physics_server_2d.h | Loading commit data... | |
physics_server_3d.cpp | Loading commit data... | |
physics_server_3d.h | Loading commit data... | |
register_server_types.cpp | Loading commit data... | |
register_server_types.h | Loading commit data... | |
rendering_server.cpp | Loading commit data... | |
rendering_server.h | Loading commit data... | |
server_wrap_mt_common.h | Loading commit data... | |
xr_server.cpp | Loading commit data... | |
xr_server.h | Loading commit data... |