I know that three.js & react-three-fiber have their own matcap materials. This is part of my journey learning about shaders and I created this matcap material myself as part of that journey. Feel free to check out the code if you've ever wondered how it's done.
Matcap mapping demo https://matcap-material.vercel.app/
to use:
npm install
npm run dev