[Light field cameras](https://en.wikipedia.org/wiki/Light_field_camera) can do that, but sadly they are pretty niche. They achieve this by having a [microlens array](https://en.wikipedia.org/wiki/Microlens) inside, providing directionality. Here’s a (https://www.youtube.com/watch?v=rEMP3XEgnws) about how they work.
Latest Answers