修改state

This commit is contained in:
sunzhenyu 2019-09-03 17:01:00 +08:00
parent 1af9b755d7
commit 9211396f99

View File

@ -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();
} }
} }