0

I have a plane mesh and I duplicated them and put them in a Object3d group, and they are both suppose to be transparent, but only one of them is, please help.

face = new THREE.MeshBasicMaterial({
    side: THREE.DoubleSide,
    transparent: true,
    map: THREE.ImageUtils.loadTexture('face.png')
});
face.map.magFilter = THREE.NearestFilter;
face.map.minFilter = THREE.NearestFilter;

facePlane = new THREE.Mesh(new THREE.PlaneGeometry(100, 100), face);

faceGroup = new THREE.Object3D();
faceGroup.add(facePlane.clone());
faceGroup.add(facePlane.clone());
faceGroup.children[0].rotation.y = 90*(Math.PI/180);

scene.add(faceGroup);
Bigmacbook
  • 105
  • 2
  • 7

1 Answers1

0

Found a Solution on Three.js / WebGL - transparent planes hiding other planes behind them

adding alphaTest: 0.5 to the material.

Community
  • 1
  • 1
Bigmacbook
  • 105
  • 2
  • 7