|
@@ -41,7 +41,8 @@ export default class HorizontalBox extends THREE.Group {
|
|
|
box.scale.set(this.width, 1, this.height);
|
|
|
|
|
|
this.add(box);
|
|
|
- this.position.x = (this.width + 0.125) * index;
|
|
|
+ this.position.x = (this.width + 0.125) * index - 2.2;
|
|
|
+
|
|
|
|
|
|
const matLine = new LineMaterial({
|
|
|
color: 0xe44d54,
|
|
@@ -60,12 +61,12 @@ export default class HorizontalBox extends THREE.Group {
|
|
|
this.manager.loader.load(i.imgUrl, (texture) => {
|
|
|
let imgRatio = texture.image.width / texture.image.height;
|
|
|
|
|
|
- let planeRatio = 1.5 / 0.85;
|
|
|
+ let planeRatio = 1.5 / 0.85;
|
|
|
let ratio = planeRatio / imgRatio;
|
|
|
|
|
|
texture.repeat.x = ratio;
|
|
|
texture.offset.x = 0.5 * (1 - ratio);
|
|
|
-
|
|
|
+
|
|
|
// console.log("texture", texture);
|
|
|
texture.colorSpace = THREE.SRGBColorSpace;
|
|
|
img = new ImgLabel(texture, matLine);
|