While displaying a 3D shoe model in the browser using three.js, I encountered an issue with a half-transparent material set for the heel. The problem arises when I use the orbitControls in the project and rotate the model to a certain angle, which then reveals dark spots and fragmented triangles in the material.
https://i.sstatic.net/4TehM.png
My desired outcome is shown below:
How can I adjust the material properties to make it a solid color? The current material properties are set as follows:
new THREE.MeshPhongMaterial({
color: 0xff0000,
specular: materialParams.material3d.specular,
shininess: materialParams.material3d.shininess,
transparent: true,
opacity: materialParams.material3d.opacity,
map: that.textureLoader.load(this.sourceUrl +
materialParams.material3d.icon),
side: THREE.DoubleSide,
blending: THREE["NormalBlending"]
})