The ToF sensors use an infrared beam blast to map the users' face, recording the time it takes for the light to be reflected back into the sensor. Previously, the S10 5G used its front facing camera for face unlock, a 2D solution that is prone to being fooled by simply holding an image of the user in front of it.