I tried this simple example:
// create a test object for lightmapping
const indexBuffer = new Uint16Array([
0, 1, 2,
0, 2, 3
]);
const vertBuffer = new Float32Array([
0 , 0 , 0 ,
16, 0 , 0 ,
16, 16, 0 ,
0 , 16 , 0
]);
const geometry2 = new THREE.BufferGeometry();
geometry2.setIndex( new THREE.BufferAttribute(indexBuffer, 1) );
geometry2.setAttribute('position', new THREE.BufferAttribute(vertBuffer, 3));
//geometry2.computeVertexNormals();
const mesh = new THREE.Mesh(geometry2, material);
SCENE.add(mesh);
It doesn’t display anything.