NeRF models scenes by predicting how light interacts with surfaces, generating highly detailed 3D representations from 2D images.