| | |
| | | this.firstTime = 1; |
| | | this.stats = null; |
| | | this.goodTypes=[];//存储所有的库位类型 |
| | | this.wrkTasks = [];// 任务列表 |
| | | this.crnTasks = [];// 堆垛机列表 |
| | | this.time = 0;//标记堆垛机运行的时间 |
| | | this.progress = 0; |
| | |
| | | } |
| | | this.initBackground = function () { |
| | | const cubeTextureLoader = new THREE.CubeTextureLoader(); |
| | | cubeTextureLoader.setPath( '../static/img/background/' ); |
| | | cubeTextureLoader.setPath( '../static/img/skybox/' ); |
| | | this.scene.background = cubeTextureLoader.load([ |
| | | "posx.jpg", "negx.jpg", |
| | | "posy.jpg", "negy.jpg", |
| | | "posz.jpg", "negz.jpg" |
| | | "px.jpg", "nx.jpg", |
| | | "py.jpg", "ny.jpg", |
| | | "pz.jpg", "nz.jpg" |
| | | ]); |
| | | this.scene.background = new THREE.Color( 0xf0f0f0 ); |
| | | // this.scene.background = new THREE.Color( 0xf0f0f0 ); |
| | | } |
| | | this.initReSize = function(object){ |
| | | window.addEventListener('resize', function () { |