I dont know why my texture is being placed rotated on child mesh of object (iphone screen)
repo: GitHub - tupynambalucas/Iphone-Product-Web3D
github page: Iphone (for those who wiling to acess the github page, mouse scroll is needed on this UX)
texture code:
let texture = textureLoader.load(source);
// texture.rotation = Math.PI;
// texture.center.set( 0.5, 0.5 );
texture.wrapT = THREE.RepeatWrapping;
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.flipY = false;
texture.repeat.set( 1, 1 );
let material = new THREE.MeshBasicMaterial({
map: texture,
shininess: 200,
// reflectivity: 1,
specular: 0xFFFFFF,
fog: false
});
o.material = material