ugprade threejs and comment out computeFaceNormals calls

This commit is contained in:
Stewart Allen 2022-01-03 19:58:49 -05:00
commit 9ed88bb938
6 changed files with 10 additions and 12 deletions

View file

@ -161,7 +161,7 @@
} else {
geo.setAttribute('position', new THREE.BufferAttribute(faces, 3));
}
geo.computeFaceNormals();
// geo.computeFaceNormals();
geo.computeVertexNormals();
if (cface) {
cface.forEach((c, i) => geo.addGroup(c.start, c.count, i));
@ -189,7 +189,7 @@
const geo = new THREE.BufferGeometry();
geo.setAttribute('position', new THREE.BufferAttribute(faces, 3));
geo.setIndex(index);
geo.computeFaceNormals();
// geo.computeFaceNormals();
geo.computeVertexNormals();
if (cpath) {
cpath.forEach((c, i) => geo.addGroup(c.start, c.count, i));