This commit is contained in:
unknown 2022-02-15 09:05:15 +08:00
parent d97babc4c8
commit bb9553fed7
4 changed files with 6 additions and 1 deletions

BIN
build.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

View File

@ -13,9 +13,10 @@ import skyTexture from './images/sky.jpg';
import snowTexture from './images/snow.png';
import treeTexture from './images/tree.png';
import flagTexture from './images/flag.png';
// import htc from './images/htc.png';
import htc from './images/htc.png';
import lc from './images/lc.jpg';
import jyh from './images/jyh.png';
import otto from './images/otto.jpg';
require('./libs/GLTFLoader.js');
import './index.css';
@ -180,6 +181,10 @@ export default class Olympic extends React.Component {
imges1=lc;
}else if(id==1210){
imges1=jyh;
}else if(id==1){
imges1=htc;
} else if(id ==5201314){
imges1=otto;
}
// child.material.map = new THREE.TextureLoader().load(flagTexture);
child.material.map = new THREE.TextureLoader().load(imges1);