godot/servers/visual
lawnjelly bf54fa5a62 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.
2020-05-30 09:29:38 +01:00
..
rasterizer.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer.h Light2D shadow mask construction fix 2020-05-30 09:29:38 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
shader_language.cpp Fix shader constant sorting 2020-03-31 14:32:33 +03:00
shader_language.h Fix shader constant sorting 2020-03-31 14:32:33 +03:00
shader_types.cpp Add MODULATE builtin to canvas item shaders 2020-05-04 00:10:24 +02:00
shader_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_canvas.cpp Batching across z_indices 2020-04-12 13:52:25 +01:00
visual_server_canvas.h Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fix 2020-01-03 14:17:05 +01:00
visual_server_globals.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_globals.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_raster.cpp Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
visual_server_raster.h Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt 2020-03-05 13:09:49 -08:00
visual_server_scene.cpp Fixed unbounded dual-paraboloid shadow map culling. 2020-04-28 17:13:36 -07:00
visual_server_scene.h Remove unused #if 0'ed code 2020-01-21 21:41:54 +01:00
visual_server_viewport.cpp Items and draw calls added to IDE Monitor in '2d' section 2020-04-16 11:52:22 +01:00
visual_server_viewport.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_wrap_mt.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_wrap_mt.h Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt 2020-03-05 13:09:49 -08:00