I would like to display a wireframed sphere whose lines on the back would be in a different color, in order to convey a better understanding of depth.
I’ve tried this :
sphereFront = new THREE.Mesh(
new THREE.SphereBufferGeometry(0.5, 16, 16),
new THREE.MeshBasicMaterial({ wireframe: true, color: 0x00e5ff, side: THREE.FrontSide })
);
sphereBack = new THREE.Mesh(
new THREE.SphereBufferGeometry(0.5, 16, 16),
new THREE.MeshBasicMaterial({ wireframe: true, color: 0x0040ff, side: THREE.BackSide })
);
scene.add( sphereFront, sphereBack );
But the side parameter seems to have no effect when wireframe parameter is true, the lines are always rendered on both sides.
Is there any workaround ?