[TUTORIAL] Fog Of War

Good evening lads. I’m trying to implement this to work in a 2.5 D platformer I’m creating. What logic would you approach this with if you only wanted this to work within buildings or certain areas basically in order to hide the contents of the rooms you’re not in, but still be able to maintain view distance outside of buildings or through house windows?