Photorealistic Reconstruction From First Principles