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 |
---|---|---|
.. | ||
rasterizer_rd | Loading commit data... | |
SCsub | Loading commit data... | |
rasterizer.cpp | Loading commit data... | |
rasterizer.h | Loading commit data... | |
rendering_device.cpp | Loading commit data... | |
rendering_device.h | Loading commit data... | |
rendering_device_binds.cpp | Loading commit data... | |
rendering_device_binds.h | Loading commit data... | |
rendering_server_canvas.cpp | Loading commit data... | |
rendering_server_canvas.h | Loading commit data... | |
rendering_server_globals.cpp | Loading commit data... | |
rendering_server_globals.h | Loading commit data... | |
rendering_server_raster.cpp | Loading commit data... | |
rendering_server_raster.h | Loading commit data... | |
rendering_server_scene.cpp | Loading commit data... | |
rendering_server_scene.h | Loading commit data... | |
rendering_server_viewport.cpp | Loading commit data... | |
rendering_server_viewport.h | Loading commit data... | |
rendering_server_wrap_mt.cpp | Loading commit data... | |
rendering_server_wrap_mt.h | Loading commit data... | |
shader_language.cpp | Loading commit data... | |
shader_language.h | Loading commit data... | |
shader_types.cpp | Loading commit data... | |
shader_types.h | Loading commit data... |