Hello,
I get a strange texture distortion on my gltf model.
Here is my code for the floor texture:
let texRes = 10;
let f_color = tl.load(texture_assets[6]);
f_color.wrapS = THREE.RepeatWrapping;
f_color.wrapT = THREE.RepeatWrapping;
f_color.repeat.set(texRes, texRes);
// same for normal and rougness maps
let floor_mat = new THREE.MeshStandardMaterial({
map: f_color,
side: THREE.DoubleSide,
transparent: false,
normalMap: f_normal,
roughnessMap: f_roughness,
})
loadGLBModel(building_asset).then((model) => {
model.scene.traverse(c => {
if (c.name == “floor”) {
c.material = floor_mat
}
else if (c.name == “window”) {
c.material = window_mat;
}
// …
c.castShadow = true;
c.receiveShadow = true;
})
scene.add(model.scene);
});
Thank you for any suggestions