How do games like Xcom and Phoenix Point deal with transparency?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ObsidianWhisper

I’m working with GridMaps and I’m trying to figure out how to handle looking inside of buildings and commanding units with mouse clicks.

I saw something about a spatial material property called Distance Fade that can make meshes transparent, but I don’t know if that’ll allow the raycast from the camera to pass through those transparent meshes. I also have no idea how to implement it in a clean manner. So I haven’t approached it yet.

Any ideas on how to cleanly implement a similar method of handling interiors as the mentioned games?

I’m really hoping I don’t have to have a separate GridMap for each Y layer and toggle visibility and masks.