var lt = new THREE.TextureLoader();
lt.load(‘Cat.tif’, function ( texture ) {
var loader = new THREE.FBXLoader();
loader.load( 'Cat.fbx', function ( object ) {
objCat = object;
objCat.traverse( function ( child ) {
if ( child instanceof THREE.Mesh ) {
child.castShadow = true;
child.receiveShadow = true;
child.material.map = texture;
child.material.needsUpdate = true;
}
} );
scene.add( objCat );
} );
}
);
I did it as above, but the texture does not come out.
What is the problem?
I do not know for a week.
Sorry, I’m a beginner, but please answer.