I am having trouble getting createMultiMaterialObject to work as expected. My goal is to have a wireframe material displayed on top of a solid material. However, the multimaterial function only seems to display the first material in the array.
Here is the code snippet:
var geometry = new THREE.PlaneGeometry( this.model.density.width, this.model.density.height, this.model.density.x, this.model.density.y );
var mat1 = new THREE.MeshBasicMaterial( { color: 0xd02000, transparent: true } );
var blackLines = new THREE.MeshBasicMaterial( { color: 0xffffff, transparent:true, wireframe: true, wireframeLinewidth: 1 } );
var materials = [mat1, blackLines];
this.plane = THREE.SceneUtils.createMultiMaterialObject( geometry, materials );
In the image provided, the red 'ground' represents the mesh that should have the multimaterial applied to it. However, only one material (in this case, a red MeshBasicMaterial) is showing up.