From e66a6ede214be7025397d7300a45ad5b2766b72d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 28 十二月 2021 11:18:32 +0800
Subject: [PATCH] #

---
 static/js/app.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 65fe1ba..ecdab77 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -30,7 +30,7 @@
 		this.direction = new THREE.Vector3();
 		this.raycaster = null;
 		this.prevTime = performance.now();//涓婁竴娆ender鐨勬椂闂�
-		this.backgroundType = false;
+		this.backgroundType = true;
 
 		this.start = function () {
 			this.initMain();
@@ -76,12 +76,11 @@
 			}
 		}
 		this.initRenderer = function () {
-			this.renderer = new THREE.WebGLRenderer();
-
 			this.renderer = new THREE.WebGLRenderer({
 				antialias: true,
 				logarithmicDepthBuffer: true
 			});
+			// this.renderer.toneMapping = THREE.CineonToneMapping;	// 鑹茶皟
 			this.renderer.setSize(window.innerWidth, window.innerHeight);
 			this.renderer.setPixelRatio( window.devicePixelRatio );
 			this.renderer.shadowMap.enabled = true;
@@ -298,8 +297,10 @@
 
 			// const helper = new THREE.PolarGridHelper( 2000, 100 );
 
-			const helper = new THREE.GridHelper( 8000, 300 );
-			helper.position.y = - 0;
+			const helper = new THREE.GridHelper( 8000, 300);
+			helper.position.x = 1200;
+			helper.position.y = - 1;
+			helper.position.z = -2000;
 			helper.material.opacity = 0.25;
 			helper.material.transparent = true;
 			this.addObject( helper );

--
Gitblit v1.9.1