Is there a way to hide the overlaps of a transparent mesh?
async function loadRoot() {
const rootData = await gltfLoader.loadAsync('./assets/refactor-root.glb');
const rootModel = setupRootModel(rootData);
return rootModel;
}
function setupRootModel(data) {
const model = data.scene.children[0];
model.material = createRootMaterial();
return model;
}
function createRootMaterial() {
const material = new MeshStandardMaterial({
color: 0xC9C9C9,
transparent: true,
opacity: 0.4,
});
return material;
}
I’ve played around with depthTest and depthWrite, but these seem to do the opposite of what I want. Same goes for alphaHash.
Here’s what I currently have:
Of course, I’d still like to view inner meshes. I’m using an ambient light (if that changes anything).
