I'm currently working on creating a flat shape geometry with rounded corners. Below is a snippet of the code I have so far:
var geometry = new THREE.ShapeGeometry(shape);
var front_material = new THREE.MeshPhongMaterial({ map: frontTexture, side: THREE.FrontSide });
var back_material = new THREE.MeshPhongMaterial({ map: backTexture, side: THREE.BackSide });
var materials = [front_material, back_material];
mesh = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
The issue I am facing is that this code only loads the front side and renders the back side invisible. Despite hours of searching online, I haven't been able to find a solution for adding materialIndex in the current version of Three.js (r78).
I believe that including material index could potentially solve this problem.