Godot Version
stable 4.4.1
Question
I have two TileMapLayers, one for terrain and the other for “structures”, i.e. plants, rocks and buildings. In the hierarchy, the former is placed before the latter. (There is also a layer for shadows but that isn’t relevant for this) I have y-sort enabled on all tilemaps to allow them to have tiles that don’t fit within the grid and still render them in the correct order; this works well:
Adding a tree also mostly works as expected:
The tree is covered up by the large tiles in front of it, as it should be. However, as you might be able to tell from the image, it is covered up by all tiles in front of it, even the ones that would not obstruct the tree in real life.
This is to be expected with the current system, but it’s obviously not what it’s supposed to look like.
(This is the full tree, for reference)
Do you have any ideas how I could have tiles like the tree obstruct a few tiles in front of them (to look like in the last image) but still be blocked by others (like in the second image)?