Skip to content

Commit

Permalink
update: threejs to version 151 (next versions have breaking changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
xesf committed Aug 6, 2023
1 parent dffdf53 commit d9e25ce
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 119 deletions.
227 changes: 114 additions & 113 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"sass": "^1.43.4",
"sass-loader": "^12.3.0",
"simplex-noise": "^2.4.0",
"three": "^0.137.0",
"three": "^0.151.0",
"webxr-polyfill": "^2.0.3"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/game/Point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class Point {

this.updateLabel();

const stickGeom = new THREE.CylinderBufferGeometry(0.036, 0.036, 0.96, 6, 1, false);
const stickGeom = new THREE.CylinderGeometry(0.036, 0.036, 0.96, 6, 1, false);
const stick = new THREE.Mesh(stickGeom, stickMaterial);
stick.position.set(0, 0.48, 0);
stick.name = 'stick';
Expand All @@ -79,7 +79,7 @@ export default class Point {
transparent: true
});

const clothGeom = new THREE.PlaneBufferGeometry(0.7, 0.7);
const clothGeom = new THREE.PlaneGeometry(0.7, 0.7);
const cloth = new THREE.Mesh(clothGeom, clothMaterial);
cloth.position.set(0.35, 0.61, 0);
cloth.name = 'cloth';
Expand Down
2 changes: 1 addition & 1 deletion src/game/scenery/island/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { WORLD_SCALE_B } from '../../../utils/lba';
// There's probably a better implementation for this.
export function loadPickingPlanes(islandObject, layout) {
const sectionsPlanes = new THREE.Object3D();
const sectionsPlanesGeom = new THREE.PlaneBufferGeometry(
const sectionsPlanesGeom = new THREE.PlaneGeometry(
64 * WORLD_SCALE_B,
64 * WORLD_SCALE_B
);
Expand Down
Loading

0 comments on commit d9e25ce

Please sign in to comment.