Modify normal repeating texture

So I got a tiling image and I import my object to the scene and use the following codes.

model.material.normalMap.repeat.set(value, value);
model.material.normalMap.updateMatrix();
model.material.normalMap.needsUpdate = true;

Nothing updates :frowning: the values of the texture has changed.

Try to update the material or even the obj itself. model.material.needsUpdate = true

Take a look here: https://threejs.org/docs/#manual/en/introduction/How-to-update-things

1 Like

I think I followed the guide but still no clues for the reason behind

model.material.normalMap.repeat.set(value, value);
model.material.normalMap.needsUpdate = true;
model.material.needsUpdate = true;
model.needsUpdate = true;

Not sure the GLTF loader is the cause of this somehow?

Updates: Following this example, it seems that it only works with Diffuse Map but not Normal Map

https://threejs.org/examples/?q=texture#webgl_materials_texture_rotation

MeshPhysicalMaterial

is being used in this test

Any ideas? Anyone?