Ensure that the color configuration is sRGB and not Adobe 98
You also need to have a remote shutter controller. This allows you to take multiple photos without touching the camera. If you have to touch the camera to shoot, then I am sure there is a situation of misalignment. And we need a light source, let's take a look at it.
It is an IKEA halogen lamp, but a polarizer is placed in front of it. I use tape to fix it. As a warning, the lantern is very hot, so the polarization is a little distorted.
All we have to do is take two pictures. But I will need to put a polarizer in front of the camera. Note that there is a polarizer on our camera and light source. If you think I'm a game programmer from Los Angeles, then you're wrong. It's just that I used to pay the rent, when I wanted to be a hand model dream (joke).
Notice the orange tape on the polarizer? I'm going to rotate it 90 degrees and take another one. Look, the orange tape has moved.
Here's the look of our first photo shoot. If your alignment is perfect, then there should be no highlight information. Of course, there will be a little bit, because it is basically impossible to align the polarizer by hand.
How does it work? The polarized light reaches the surface and the highlight bounces off the surface and shoots into the camera. It reaches the polarizer perpendicular to the polarized light, so it is completely absorbed. At the same time, diffuse absorption and re-transmission of reflected light is non-polarized. Polarized light absorbs half of the diffuse sunlight, and the rest of it enters the camera. So there's half the diffuse but no highlight information in the picture. Now look at the second picture.
In the above picture, the polarized high light reaches the polarizer parallel to it, so all the light is passed. At the same time diffuse reflection is not non-polarized, all half of it is absorbed. It has half the diffuse reflection and all the highlights information.
If we contract the first picture to a, and the second one to B, then diffuse is 2*a, and the high light is b-a. Of course these images are stored in the sRGB space. So here we need to use the shader code to compare the two images and separate them and store the results as an sRGB image. As always, the code has not been tested.