Skip to content

Commit

Permalink
Merge pull request #92173 from cosparks/fix-tilemap-occluder-sdf
Browse files Browse the repository at this point in the history
Fix 2d sdf collision for TileMapLayer Occluders
  • Loading branch information
akien-mga committed May 21, 2024
2 parents 9e9fb16 + 601edc7 commit 365d25d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/2d/tile_map_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 365d25d

Please sign in to comment.