We are currently attempting to conceal certain parts of a mesh by using the alphaMap property on the material. However, we have encountered an issue where this method does not have any effect on the mesh. The code we are using is as follows:
new THREE.MeshPhongMaterial( {
ambient: 0xBABABA,
color: 0xBABABA,
specular: 0xA1A1A1,
shininess: 10,
shading: THREE.SmoothShading,
reflectivity: 0.20,
envMap: cubemap,
bumpScale: 0.15,
// alphaMap
alphaMap: THREE.ImageUtils.loadTexture("img/TransparentMap.png"),
transparent: true,
})
We have tried using various alphaMaps such as: this and this.
If there are better alternatives for concealing parts of a mesh other than using alphaMap, we are open to exploring them.