Hi,
I’m trying change a mesh material with external images.
here is my code block ;
let txt = new THREE.TextureLoader().load(color.texture);
txt.flipY = false;
txt.wrapS = THREE.RepeatWrapping;
txt.wrapT = THREE.RepeatWrapping;
txt.repeat.set(1, 1);
txt.offset.set(0, 0);
new_mtl = new THREE.MeshPhongMaterial({
map: txt,
shininess: color.shininess ? color.shininess : 10
});
currMesh.material = new_mtl ;
its working but result is ;
my goal is :
anyone could help me ?
thanks…