From 13488b42608eb7920ed0b2c753be19504d985448 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 2 Feb 2023 17:22:24 -0800 Subject: [PATCH] Expose RenderingServer.canvas_light_blend_mode This appears to have been missed in the refactor --- doc/classes/RenderingServer.xml | 8 ++++++++ servers/rendering_server.cpp | 1 + 2 files changed, 9 insertions(+) diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 4e3a1bc0ef0..e5ab3271dc7 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -630,6 +630,14 @@ Sets a light occluder's [Transform2D]. + + + + + + Sets the blend mode for the given canvas light. See [enum CanvasLightBlendMode] for options. Equivalent to [member Light2D.blend_mode]. + + diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 1c19b9dcd02..848b6d01d43 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -2675,6 +2675,7 @@ void RenderingServer::_bind_methods() { ClassDB::bind_method(D_METHOD("canvas_light_set_shadow_filter", "light", "filter"), &RenderingServer::canvas_light_set_shadow_filter); ClassDB::bind_method(D_METHOD("canvas_light_set_shadow_color", "light", "color"), &RenderingServer::canvas_light_set_shadow_color); ClassDB::bind_method(D_METHOD("canvas_light_set_shadow_smooth", "light", "smooth"), &RenderingServer::canvas_light_set_shadow_smooth); + ClassDB::bind_method(D_METHOD("canvas_light_set_blend_mode", "light", "mode"), &RenderingServer::canvas_light_set_blend_mode); BIND_ENUM_CONSTANT(CANVAS_LIGHT_MODE_POINT); BIND_ENUM_CONSTANT(CANVAS_LIGHT_MODE_DIRECTIONAL);