Skip to content

Commit

Permalink
Remove color attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
soulofmischief committed Dec 18, 2022
1 parent c868e67 commit 9316c1f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions zine-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,8 @@ class SceneMesh extends THREE.Mesh {
height,
);
geometry.setAttribute('segment', new THREE.BufferAttribute(segmentSpecs.array, 1));
geometry.setAttribute('segmentColor', new THREE.BufferAttribute(segmentSpecs.colorArray, 3));
geometry.setAttribute('plane', new THREE.BufferAttribute(planeSpecs.array, 1));
geometry.setAttribute('planeColor', new THREE.BufferAttribute(planeSpecs.colorArray, 3));
// geometry.setAttribute('portal', new THREE.BufferAttribute(portalSpecs.array, 1));
geometry.setAttribute('portalColor', new THREE.BufferAttribute(portalSpecs.colorArray, 3));
const indexedGeometry = geometry;
geometry = geometry.toNonIndexed();
decorateGeometryTriangleIds(geometry);
Expand Down Expand Up @@ -205,15 +202,7 @@ class ScenePhysicsMesh extends THREE.Mesh {
height,
physicsPixelStride,
);
// geometry.setAttribute('segment', new THREE.BufferAttribute(segmentSpecs.array, 1));
// geometry.setAttribute('segmentColor', new THREE.BufferAttribute(segmentSpecs.colorArray, 3));
// geometry.setAttribute('plane', new THREE.BufferAttribute(planeSpecs.array, 1));
// geometry.setAttribute('planeColor', new THREE.BufferAttribute(planeSpecs.colorArray, 3));
// // geometry.setAttribute('portal', new THREE.BufferAttribute(portalSpecs.array, 1));
// geometry.setAttribute('portalColor', new THREE.BufferAttribute(portalSpecs.colorArray, 3));
// const indexedGeometry = geometry;
// geometry = geometry.toNonIndexed();
// decorateGeometryTriangleIds(geometry);

super(geometry, fakeMaterial);

const scenePhysicsMesh = this;
Expand Down Expand Up @@ -507,4 +496,4 @@ export class ZineRenderer extends EventTarget {
);
targetZineRenderer.camera.updateMatrixWorld();
}
}
}

0 comments on commit 9316c1f

Please sign in to comment.