From 809e230e2a6a2e586df8788946fe98be81459361 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 17 十二月 2021 16:10:23 +0800 Subject: [PATCH] # --- static/js/app.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 6e67ec9..af80b15 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -16,7 +16,6 @@ this.firstTime = 1; this.stats = null; this.goodTypes=[];//瀛樺偍鎵�鏈夌殑搴撲綅绫诲瀷 - this.wrkTasks = [];// 浠诲姟鍒楄〃 this.crnTasks = [];// 鍫嗗灈鏈哄垪琛� this.time = 0;//鏍囪鍫嗗灈鏈鸿繍琛岀殑鏃堕棿 this.progress = 0; @@ -132,13 +131,13 @@ } 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 () { -- Gitblit v1.9.1