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 3703b68 commit e39279b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 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 @@ -206,11 +203,8 @@ class ScenePhysicsMesh extends THREE.Mesh {
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);
Expand Down Expand Up @@ -507,4 +501,4 @@ export class ZineRenderer extends EventTarget {
);
targetZineRenderer.camera.updateMatrixWorld();
}
}
}

0 comments on commit e39279b

Please sign in to comment.