Visual big where material with opacity applied lets you see through meshes positioned behind

Hi all. Here is the code applied to the material suffering from this artifact:

if ( === 'Cristal' ) {
    const newMaterial = new MeshStandardMaterial( {
      roughness: 0.25,
      metalness: 0,
      opacity: 0,

    } );

    node.material = newMaterial;

What could be causing this? I can see through the wall after the transparent material.

Try depthTest:false

1 Like

That solved it, thanks a lot!

1 Like