|
|
@@ -36,7 +36,7 @@
|
|
|
import Stats from 'three/addons/libs/stats.module.js';
|
|
|
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
|
- import { HDRLoader } from 'three/addons/loaders/HDRLoader.js';
|
|
|
+ import { UltraHDRLoader } from 'three/addons/loaders/UltraHDRLoader.js';
|
|
|
import { PLYLoader } from 'three/addons/loaders/PLYLoader.js';
|
|
|
import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
|
|
|
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
|
|
|
@@ -78,7 +78,7 @@
|
|
|
renderer.shadowMap.enabled = sceneParameters.shadow;
|
|
|
|
|
|
const plyLoader = new PLYLoader();
|
|
|
- const hdrLoader = new HDRLoader();
|
|
|
+ const hdrLoader = new UltraHDRLoader();
|
|
|
|
|
|
camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 50 );
|
|
|
camera.position.set( 0, 3, 5 );
|
|
|
@@ -103,7 +103,7 @@
|
|
|
composer.addPass( renderPasse );
|
|
|
composer.addPass( outputPass );
|
|
|
|
|
|
- hdrLoader.load( 'textures/equirectangular/royal_esplanade_1k.hdr', function ( texture ) {
|
|
|
+ hdrLoader.load( 'textures/equirectangular/royal_esplanade_2k.hdr.jpg', function ( texture ) {
|
|
|
|
|
|
texture.mapping = THREE.EquirectangularReflectionMapping;
|
|
|
scene.environment = texture;
|