upgrade to threejs 144
This commit is contained in:
parent
a15b47c05e
commit
1f9c666f1c
4 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@
|
|||
"moment": "^2.24.0",
|
||||
"pixi.js": "^4.8.9",
|
||||
"serve-static": "^1.14.1",
|
||||
"three": "^0.139.2",
|
||||
"three": "^0.144.0",
|
||||
"uglify-js": "3.14.5",
|
||||
"validator": ">=13.7.0",
|
||||
"ws": "^7.5.5"
|
||||
|
|
|
|||
|
|
@ -983,7 +983,7 @@ gapp.register("kiri.init", [], (root, exports) => {
|
|||
case 7: pos = { x: 0, y: -(bedDepth - height)/2 }; break;
|
||||
case 8: pos = { x: (bedWidth - width)/2, y: -(bedDepth - height)/2 }; break;
|
||||
}
|
||||
let geometry = new THREE.PlaneBufferGeometry(width, height, 1),
|
||||
let geometry = new THREE.PlaneGeometry(width, height, 1),
|
||||
material = new THREE.MeshBasicMaterial({ map: texture, transparent: true }),
|
||||
mesh = new THREE.Mesh(geometry, material);
|
||||
mesh.position.z = -bedHeight;
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ function ProfiledContourGeometry(profileShape, contour, contourClosed) {
|
|||
|
||||
contourClosed = contourClosed !== undefined ? contourClosed : true;
|
||||
|
||||
const profileGeometry = new THREE.ShapeBufferGeometry(profileShape);
|
||||
const profileGeometry = new THREE.ShapeGeometry(profileShape);
|
||||
profileGeometry.rotateX(Math.PI * .5);
|
||||
|
||||
const profile = profileGeometry.attributes.position;
|
||||
|
|
|
|||
|
|
@ -1350,7 +1350,7 @@ gapp.register("moto.space", [], (root, exports) => {
|
|||
platform.visible = showPlatform;
|
||||
|
||||
trackPlane = new THREE.Mesh(
|
||||
new THREE.PlaneBufferGeometry(100000, 100000, 1, 1),
|
||||
new THREE.PlaneGeometry(100000, 100000, 1, 1),
|
||||
new THREE.MeshBasicMaterial( { color: 0x777777, opacity: 0, transparent: true } )
|
||||
);
|
||||
trackPlane.visible = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue