This is probably the culprit: https://github.com/sniklaus/experiment-raytracer/blob/master...
It declares that floats should only be medium precision by default, but those precision specifiers are only followed on mobile platforms.
Desktop WebGL implementations just promote everything to high precision so that kind of bug is invisible until you test on mobile.
Made a screenshot: https://imgur.com/a/7J4Da
Thank you for pointing it out, I fixed it by now. :)
Fixed for me. Nice work
That's probably an implementation issues that manifests on your hardware called shadow acne/self intersection. It's explained here[0]
0: https://www.scratchapixel.com/lessons/3d-basic-rendering/int...
Made a screenshot: https://imgur.com/a/7J4Da
Like someone scribbled the colors over the circles instead of filling them.