CSS-like box-shadow on tiles

Godot Version

4.4

Question

my goal is to add box-shadows on certain blocks to make it pop from the background like so:


however, my current method for adding box shadows is by inserting a 20 * 20 Sprite2D shadow png and applying it manually to every single block. is there a better way to handle this? thanks in advance!

You could do this by applying a 2D shader. You’d likely have to write it yourself.