Hi, I'm trying to set multiple materials on plane geometry, but i'm getting bellow error:

let aa = new THREE.Texture();
let txt = new THREE.ImageLoader().load(“images/pz.png”);
aa.image = txt; aa.needsUpdate = true;
let matt_front = new THREE.MeshBasicMaterial( { map: aa } );

let plane_geometry_front = new THREE.PlaneGeometry( 500, 500, 1, 1 );
plane_geometry_front.faces[ 0 ].materials.push( matt_front );

Hi, I’m trying to set multiple materials on plane geometry, but i’m getting bellow error:

Uncaught TypeError: Cannot read properties of undefined (reading 'push')

What did i do wrong ?

Thanks

addGroup( 0, Infinity, 0 );
addGroup( 0, Infinity, 1 );

new THREE.Mesh( plane_geometry_front, [matt1, matt2]);

I use PlaneBufferGeometry and add groups then set multiple materials. Now it’s works for me.

Thanks