Setting Custom Values of Blender Material of GLTF Model to Use in Threejs

Qestion is somewhat Blender related. I am trying to create a material for gltf model, that i’ll load with threejs. What I wonder is, is it possible somewhat to reach the color and texture values I created in Blender nodes and change the values of them in Three.js to make it act like a custom shader?

There’s no way to export custom shader graphs from Blender, unless you bake them down to a normal texture. This looks like the right guide for that process, although I haven’t watched through yet. You’d need to end up with something like the examples here for it to export to glTF correctly.

Alternatively, you could recreate that setup using shaders or NodeMaterial in three.js.

1 Like