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