From 5f657f43d16adf91de8254e02b4a0ee5ecc9d46b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 30 十二月 2021 16:15:57 +0800
Subject: [PATCH] #

---
 static/js/app.js |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 65fe1ba..075903c 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,15 +76,14 @@
 			}
 		}
 		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;
+			this.renderer.shadowMap.enabled = false;
 			this.renderer.shadowMap.type = THREE.BasicShadowMap;
 			this.dom = document.getElementById("container");
 			this.dom.appendChild(this.renderer.domElement);
@@ -137,7 +136,8 @@
 		}
 		this.initBackground = function () {
 			if (this.backgroundType) {
-				this.scene.background = new THREE.Color( 0xf0f0f0 );
+				// this.scene.background = new THREE.Color( 0xf0f0f0 );
+				this.scene.background = new THREE.Color( 0x333333 );
 			} else {
 				const cubeTextureLoader = new THREE.CubeTextureLoader();
 				cubeTextureLoader.setPath( '../static/img/skybox0/' );
@@ -298,8 +298,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