diff options
author | cosparks <cosparks@students.cs.ubc.ca> | 2024-05-20 13:03:02 -0700 |
---|---|---|
committer | cosparks <cosparks@students.cs.ubc.ca> | 2024-05-20 13:03:02 -0700 |
commit | 601edc7d3e27f5a2ac5f971e8bb1a3780b67a3a2 (patch) | |
tree | 4acd6016c81f9c91574531c6383cbde9e5faba4c /scene | |
parent | 40b4130c93d08235a60996d29e5869a22b6ae53d (diff) | |
download | redot-engine-601edc7d3e27f5a2ac5f971e8bb1a3780b67a3a2.tar.gz |
Fix 2d sdf collision for TileMapLayer
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/tile_map_layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/tile_map_layer.cpp b/scene/2d/tile_map_layer.cpp index 03fd7364c0..fe51171744 100644 --- a/scene/2d/tile_map_layer.cpp +++ b/scene/2d/tile_map_layer.cpp @@ -603,6 +603,7 @@ void TileMapLayer::_rendering_occluders_update_cell(CellData &r_cell_data) { rs->canvas_light_occluder_set_polygon(occluder, tile_data->get_occluder(occlusion_layer_index, flip_h, flip_v, transpose)->get_rid()); rs->canvas_light_occluder_attach_to_canvas(occluder, get_canvas()); rs->canvas_light_occluder_set_light_mask(occluder, tile_set->get_occlusion_layer_light_mask(occlusion_layer_index)); + rs->canvas_light_occluder_set_as_sdf_collision(occluder, tile_set->get_occlusion_layer_sdf_collision(occlusion_layer_index)); } else { // Clear occluder. if (occluder.is_valid()) { |