Color OBJLoader by texture


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] = textureCorpus;
        scene.children[index].children[7] = 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: