Skip to content

Commit

Permalink
revert unrelated PlaneBufferGeometry changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwmke committed Sep 22, 2024
1 parent 08fd111 commit 0e07acf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/models/rgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ class RgbModel {
console.log('cSegments:', cSegments);
// w and h don't matter since position.array is being overwritten

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

let geom = new THREE.PlaneBufferGeometry(1, 1, cSegments[0], cSegments[1]);
geom.attributes.position.array = new Float32Array(arr);
// test identifying a 127x1 "belt"
// let geom = new THREE.PlaneBufferGeometry(1, 1, 127, 1);
// let arrBelt = arr;
Expand Down Expand Up @@ -370,7 +370,6 @@ class RgbModel {
// side: THREE.DoubleSide,
map: tex,
});
tex.encoding = THREE.sRGBEncoding;
}

if (onSatelliteMatWrapper) {
Expand Down

0 comments on commit 0e07acf

Please sign in to comment.