Status of Multiple Materials

I don’t know if multiple materials is now supported in any way?

MultiMaterial has been deprecated – but I cannot find any documentation or help on how to create a custom mesh (NOT a CUBE) with multiple materials – or how my faceVertexUvs structure has to look or how to get this working..

Any help or links please?

Author: Fantashit

1 thought on “Status of Multiple Materials

  1. I might not understand correctly what you are trying to achieve, but supplying an array should work? Upon using THREE.MultiMaterial a warning should be logged to console, which reads:

    THREE.MultiMaterial has been removed. Use an Array instead.

    Example:

    const geo = new THREE.BoxGeometry( 1, 1, 1 );
    const mat = [
        new THREE.MeshBasicMaterial({ color: 0xFF00FF }),
        new THREE.MeshBasicMaterial({ color: 0x00FF00 }),
        new THREE.MeshBasicMaterial({ color: 0xFF00FF }),
        new THREE.MeshBasicMaterial({ color: 0x00FF00 }),
        new THREE.MeshBasicMaterial({ color: 0xFF00FF }),
        new THREE.MeshBasicMaterial({ color: 0x00FF00 }),
    ];
    const mesh = new THREE.Mesh( geo, mat ); 
    

    I’m using this for my own custom mesh.

Comments are closed.