I have a mesh that has map and color. I want to set the transparent part in the map to be the color. I tried this but only map is render.
var map = THREE.ImageUtils.loadTexture(url);
var material = new THREE.MeshPhongMaterial({
color: colors[Math.ceil(Math.random() * (colors.length - 1))],
transparent: true,
opacity: 1.0,
map: map,
blending: THREE.NormalBlending
});
target.mesh = new THREE.Mesh(
new THREE.CubeGeometry(target.size.x, target.size.y, target.size.z),
material);