I am currently working on a project in which I have created a simple cube using Three.js and Physijs. The issue I am facing is related to mapping a texture that contains transparency. I want to be able to see the texture on both sides of the cube through the transparent parts. However, at the moment, I can only see the background through the transparency, not the texture on the back side of the cube.
var cube = new Physijs.BoxMesh(
new THREE.BoxGeometry( 2, 2, 2),
new THREE.MeshPhongMaterial( { map: THREE.ImageUtils.loadTexture('border.png') } ),
1 );
The texture I am using can be found here.
The current result I am getting can be seen here.
It seems that although the background shows through the cube's transparent areas, the texture on the rear faces is not visible. Is there a way for me to apply the texture to both sides of each face of the cube, even if it involves the back of a 2D texture?
This venture into Three.js is my first attempt, and I'm aware that there is a lot to learn. I hope that I haven't overlooked any obvious solutions :)