|
@@ -154,7 +154,8 @@ export default {
|
|
|
|
|
|
texture.repeat.set(scaleX, scaleY);
|
|
|
|
|
|
- let geometry = new THREE.PlaneGeometry(obj.spaceWidth/100, obj.spaceHeight/100);
|
|
|
+
|
|
|
+ let geometry = new THREE.BoxGeometry(obj.spaceWidth/100,0.1, obj.spaceHeight/100);
|
|
|
let material = new THREE.MeshBasicMaterial({ map: texture });
|
|
|
let cube = new THREE.Mesh(geometry, material);
|
|
|
|
|
@@ -162,9 +163,9 @@ export default {
|
|
|
cube.userType = "mesh";
|
|
|
cube.userData = obj;
|
|
|
|
|
|
- cube.position.set(positionX, -0.01, -positionY);
|
|
|
- cube.rotation.x = -Math.PI / 2 ;
|
|
|
- cube.receiveShadow = true;
|
|
|
+ cube.position.set(positionX, -0.11, -positionY);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|