godot/servers/rendering
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
..
rasterizer_rd Split `Geometry` singleton into `Geometry2D` and `Geometry3D` 2020-05-27 14:28:34 +03:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
rasterizer.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
rasterizer.h Light2D shadow mask construction fix 2020-06-02 10:37:01 +02:00
rendering_device.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
rendering_device.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rendering_device_binds.cpp GLSL: Change shader type specifier from [vertex] to #[vertex] 2020-05-18 10:58:14 +02:00
rendering_device_binds.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rendering_server_canvas.cpp Split `Geometry` singleton into `Geometry2D` and `Geometry3D` 2020-05-27 14:28:34 +03:00
rendering_server_canvas.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rendering_server_globals.cpp Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
rendering_server_globals.h More server renames for consistency after #37361 2020-03-28 13:20:48 +01:00
rendering_server_raster.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rendering_server_raster.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rendering_server_scene.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rendering_server_scene.h Split `Geometry` singleton into `Geometry2D` and `Geometry3D` 2020-05-27 14:28:34 +03:00
rendering_server_viewport.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rendering_server_viewport.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
rendering_server_wrap_mt.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rendering_server_wrap_mt.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
shader_language.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
shader_language.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
shader_types.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
shader_types.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00