修改state
This commit is contained in:
parent
1af9b755d7
commit
9211396f99
@ -121,9 +121,8 @@ export function JLmapDriving(dom, data, skinCode) {
|
|||||||
getPublish3dMapDetail(skinCode).then(netdata => {
|
getPublish3dMapDetail(skinCode).then(netdata => {
|
||||||
ModelLoad(data, scope, netdata.data, mapdata, camera, controls3, scene,mixers);
|
ModelLoad(data, scope, netdata.data, mapdata, camera, controls3, scene,mixers);
|
||||||
});
|
});
|
||||||
console.log(scene);
|
// let stats = new Stats();
|
||||||
let stats = new Stats();
|
// dom.appendChild( stats.dom );
|
||||||
dom.appendChild( stats.dom );
|
|
||||||
// 开启渲染
|
// 开启渲染
|
||||||
animate();
|
animate();
|
||||||
startWorker();
|
startWorker();
|
||||||
@ -151,7 +150,7 @@ export function JLmapDriving(dom, data, skinCode) {
|
|||||||
for (let i=mixers.length-1; i>=0; i--) {
|
for (let i=mixers.length-1; i>=0; i--) {
|
||||||
mixers[i].update( delta );
|
mixers[i].update( delta );
|
||||||
}
|
}
|
||||||
stats.update();
|
// stats.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user