Add this to your THREE.ShaderMaterial():
THREE.ShaderMaterial()
transparent: true
to get the same result when you use THREE.MeshBasicMaterial()
THREE.MeshBasicMaterial()
https://codepen.io/prisoner849/pen/wvwVMEo?editors=0010