From b353267679163a1df86c0288ab62fe5aac5ef720 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 26 Mar 2024 14:10:41 +0100 Subject: [PATCH] Use blending for now with vertex lights in Layered Tile Maps. --- modules/layered_tile_map/layered_tile_map_layer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/layered_tile_map/layered_tile_map_layer.cpp b/modules/layered_tile_map/layered_tile_map_layer.cpp index da9ae66a1..446a1fa07 100644 --- a/modules/layered_tile_map/layered_tile_map_layer.cpp +++ b/modules/layered_tile_map/layered_tile_map_layer.cpp @@ -376,8 +376,11 @@ void LayeredTileMapLayer::_rendering_update() { #ifdef MODULE_VERTEX_LIGHTS_2D_ENABLED if (_use_vertex_lights) { - //self_modulate = self_modulate.blend(cell_data.vertex_light_color); - self_modulate = cell_data.vertex_light_color; + self_modulate = self_modulate.blend(cell_data.vertex_light_color); + //self_modulate = self_modulate.clamp(); + //self_modulate = cell_data.vertex_light_color; + //self_modulate += cell_data.vertex_light_color; + //self_modulate = self_modulate.clamp(); } #endif