|
@@ -33,6 +33,8 @@
|
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
|
|
|
|
|
|
+ THREE.ColorManagement.enabled = true;
|
|
|
|
+
|
|
let camera, scene, renderer, clock;
|
|
let camera, scene, renderer, clock;
|
|
|
|
|
|
let mesh;
|
|
let mesh;
|
|
@@ -54,11 +56,11 @@
|
|
|
|
|
|
clock = new THREE.Clock();
|
|
clock = new THREE.Clock();
|
|
|
|
|
|
- const light1 = new THREE.PointLight( 0xff2200, 0.7 );
|
|
|
|
|
|
+ const light1 = new THREE.PointLight( 0xff2200, 50000 );
|
|
light1.position.set( 100, 100, 100 );
|
|
light1.position.set( 100, 100, 100 );
|
|
scene.add( light1 );
|
|
scene.add( light1 );
|
|
|
|
|
|
- const light2 = new THREE.PointLight( 0x22ff00, 0.7 );
|
|
|
|
|
|
+ const light2 = new THREE.PointLight( 0x22ff00, 10000 );
|
|
light2.position.set( - 100, - 100, - 100 );
|
|
light2.position.set( - 100, - 100, - 100 );
|
|
scene.add( light2 );
|
|
scene.add( light2 );
|
|
|
|
|
|
@@ -92,6 +94,10 @@
|
|
renderer = new THREE.WebGLRenderer();
|
|
renderer = new THREE.WebGLRenderer();
|
|
renderer.setPixelRatio( window.devicePixelRatio );
|
|
renderer.setPixelRatio( window.devicePixelRatio );
|
|
renderer.setSize( window.innerWidth, window.innerHeight );
|
|
renderer.setSize( window.innerWidth, window.innerHeight );
|
|
|
|
+
|
|
|
|
+ renderer.outputEncoding = THREE.sRGBEncoding;
|
|
|
|
+ renderer.useLegacyLights = false;
|
|
|
|
+
|
|
container.appendChild( renderer.domElement );
|
|
container.appendChild( renderer.domElement );
|
|
|
|
|
|
//
|
|
//
|