godot/servers
lawnjelly 61b3eb3b28 Light2D shadow mask construction fix
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 bf54fa5a62)
2020-06-02 10:37:01 +02:00
..
audio Style: Fix unnecessary semicolons that confused clang-format 2020-05-19 11:24:58 +02:00
camera SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
physics_2d Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
physics_3d Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
rendering Light2D shadow mask construction fix 2020-06-02 10:37:01 +02:00
xr Style: Fix unnecessary semicolons that confused clang-format 2020-05-19 11:24:58 +02:00
audio_server.cpp Move mix_rate, ouput_latency to AudioDriverManager 2020-05-18 13:02:06 +02:00
audio_server.h Move mix_rate, ouput_latency to AudioDriverManager 2020-05-18 13:02:06 +02:00
camera_server.cpp Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
camera_server.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
display_server.cpp doc: Sync classref with current source 2020-05-20 15:29:37 +02:00
display_server.h doc: Sync classref with current source 2020-05-20 15:29:37 +02:00
navigation_server_2d.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
navigation_server_2d.h doc: Update classref with node renames 2020-03-30 18:23:02 +02:00
navigation_server_3d.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
navigation_server_3d.h More server renames for consistency after #37361 2020-03-28 13:20:48 +01:00
physics_server_2d.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
physics_server_2d.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
physics_server_3d.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
physics_server_3d.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
register_server_types.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
register_server_types.h Yay very basic 3D (only white) finally shows. 2020-02-11 11:59:27 +01:00
rendering_server.cpp Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
rendering_server.h Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
SCsub Renaming all ARVR nodes to XR 2020-04-09 15:33:01 +10:00
server_wrap_mt_common.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00
xr_server.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
xr_server.h Renaming all ARVR nodes to XR 2020-04-09 15:33:01 +10:00