Is it possible to export glsl code that would be extracted from shader nodes or any other way?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
It's worth looking into <model-viewer> that supports GLFT. You would need to look into how shaders work with GLTF and exporting from Blender and make another shader though. Basically, you can use Principled BSDF shaders in your material and HDRI maps with GLTF and it should export materials and then just use the HTML tag to display the GLTF file on your page as a 3d model.