To really get a nice 3D effect you also need distance of the eyes from the phone.
Based on the video in the article, this demo actually uses this depth information.
You can't get this depth info easily from a camera. I can certainly see how the more advanced optics in the iPhone X really help here.