The iPhone 8 is missing a few of the camera features that make the iPhone XS camera so great. It doesn't have portrait mode or portrait lighting on the front or rear cameras, it can't do Animoji or the new Memoji, and it doesn't have 2X optical zoom.
That being said, the iPhone 8 still has a great camera. Its front camera has most of the same specs as the iPhone XS, including a 7 MP lens with an f/2.2 aperture, and 1080p HD video.
The iPhone 8's rear camera has the same 12 megapixel wide angle lens with an f/1.8 aperture as the iPhone XS, along with wide color capture, a quad-LED True Tone flash, and 4K video recording.