Have really cool-looking soap bubble in Blender, would like to use it in javascript project, but when I import it to javascript it's just gray ball.
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 communityHave really cool-looking soap bubble in Blender, would like to use it in javascript project, but when I import it to javascript it's just gray ball.
Is it possible to export glsl code that would be extracted from shader nodes or any other way?
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.