mrdoob/three.js — Issue #757: Change color material into texture
Author: UweFuchs
Created: 2011-11-14 21:13:41+00:00
State: open

I added a Cube with a Lambertmaterial (just colored) into the scene and want to change the material into textured.
But if I set mesh.materials[0] with the new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture(texPath) }) the cube vanished. The texture is ok, if I start textured everything is fine.