What is LiDAR, and what does it do on the iPhone?

The LiDAR scanner is one of the key differences between Apple's iPhone 12 and iPhone 12 Pro - but what is it, and more importantly, is it enough to upgrade to the iPhone 12 Pro or Pro Max? We outline all you need to know.