For example, there is a InstancedMesh built with BoxGeometry and many of the instances are connected next to each other. If there is way to remove the connected / duplicated face since they can’t be seen?
Why dont you just make one box?
Thanks for the reply, however I’m trying to make a minecraft-like game, so the blocks are randomly generated and I want it to be able to remove one block at a time.
I’m not very sure if this can be done by merging them into one geometry, so I tried InstancedMesh and encountered this problem
You could use a depth prepass approach but this would result in no transparency overlap within the instanced cubes at all even for distance cubes. See this thread for more information on that approach.
… I’m trying to make a minecraft-like game…
From what I can tell in Minecraft most individually interactive blocks use alpha clipping instead of partial transparency likely to avoid the issue you’re running into here. Water is partially transparent but it also seems to be a special case where a unique mesh is generated based on how the water is flowing which avoids the “seams” between blocks.