Skip to content

Commit

Permalink
Replace PlaneBufferGeometry with PlaneGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
jwmke committed Sep 17, 2024
1 parent 5bc6a5b commit 64a8d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/rgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,9 @@ class RgbModel {
arr, this.getNeighborsInfo(dataEle, dataEleIds, zoompos));
console.log('cSegments:', cSegments);
// w and h don't matter since position.array is being overwritten

let geom = new THREE.PlaneBufferGeometry(
1, 1, cSegments[0], cSegments[1]);
geom.attributes.position.array = new Float32Array(arr);

let geom = new THREE.PlaneGeometry(1, 1, cSegments[0], cSegments[1]);
geom.setAttribute('position', new THREE.Float32BufferAttribute(arr, 3));

// test identifying a 127x1 "belt"
// let geom = new THREE.PlaneBufferGeometry(1, 1, 127, 1);
Expand Down Expand Up @@ -371,6 +370,7 @@ class RgbModel {
// side: THREE.DoubleSide,
map: tex,
});
tex.encoding = THREE.sRGBEncoding;
}

if (onSatelliteMatWrapper) {
Expand Down

0 comments on commit 64a8d95

Please sign in to comment.