I have a model defined in blender:
As you can see, the texture is partially transparent(see nodes - I convert the white background to alpha):
(do not directly use alpha)
And make sure to enable BlendMode as AlphaClip(does not work with blendmode = opaque):
However, when loading into three.js as such:
const gltfLoader = new GLTFLoader();
var loader = gltfLoader.load(gltfPath, (result) => {
let root: Group = result.scene
root.scale.setScalar(10);
root.name = name;
root.castShadow = true;
root.receiveShadow = true;
//root.rotation.x = -90;
let objectWrapper = new Object3D();
objectWrapper.add(root);
resolve(objectWrapper);
console.log("Called!")
});
});
The alpha is not working properly - how can I fix this? Any alternative method for alpha? some setting in GLTFLoader?