I have a 3d game where players can explore small maps.
Each map is bounded by walls, except for some exits.
Right now if players come close to an exit, they can look outside the map and see a skybox, this is bad.
I want the camera to be able to roam free, except in places where it would let players see outside.
There are some contraints, for example the camera always points down, so it is not possible to see the sky.
What kind of approach should I take?