Is it true that lightmaps function independently of other textures?
It seems like I need to establish a second set of UVs.
I've exported my JSON object with a second set of UVs and included the following code snippet:
geometry.faceVertexUvs[0] = geometry.faceVertexUvs[1];
Unfortunately, I'm not seeing any results. Can anyone provide guidance on what might be missing? Using Three.js r.73
loader.load("model.js", function(geometry){
geometry.faceVertexUvs[0] = geometry.faceVertexUvs[1];
var mesh = new THREE.Mesh( geometry, new THREE.MeshPhongMaterial( {
color: 0x777777,
lightMap: THREE.ImageUtils.loadTexture( "lightmap.png" ),
normalMap: THREE.ImageUtils.loadTexture( "normalmap.png" ),
specularMap: THREE.ImageUtils.loadTexture( "specularmap.png" )
}));
scene.add(mesh );
});