Color OBJLoader by texture

Hi

I have problem when I need to set color to child of object by texture, I get last value to all children of this object.

        scene.children[index].children[0].material.map = textureCorpus;
        scene.children[index].children[7].material.map = textureFront;

The materials of your child objects might be shared. So try to clone them before assigning the textures.

1 Like

Thank you @Mugen87,
It’s worked :100: