make the outline render only when the entity is not visible due to obstructions, instead of the outline being there all the time