How to apply a new material with alpha texture to a loaded glTF model?

Hello! Please help me understand how to apply another material and alphaMap to exported model from blender

You can traverse through the parsed glTF scene and replace materials with a new one (using an alpha map). Try to use a code like the following in your onLoad() callback:

var newMaterial = new THREE.MeshStandardMaterial( { alphaMap: map } );

gltf.scene.traverse( ( object ) => {

   if ( object.isMesh ) {

     object.material = newMaterial;


} );
1 Like

Thank You so much

1 Like