Skip to content

Commit

Permalink
Fixed three.js import paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilis-wix committed Jun 7, 2024
1 parent 3be471b commit 04a1032
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gallery/src/components/helpers/3dManager.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useCallback, useState } from 'react';
import * as THREE from 'three';
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment.js';
import { LoadingManager } from 'three';

Expand Down Expand Up @@ -219,7 +219,7 @@ export function createSceneManager(container: HTMLElement, canvas: HTMLCanvasEle
},
async loadHDR(url) {
const { RGBELoader } = await import(
/* webpackChunkName: "three-rbdl-loader" */ 'three/examples/jsm/loaders/RGBELoader'
/* webpackChunkName: "three-rbdl-loader" */ 'three/examples/jsm/loaders/RGBELoader.js'
);
const hdrLoader = new RGBELoader();
const hdr = await new Promise<THREE.Texture>((resolve) => {
Expand Down

0 comments on commit 04a1032

Please sign in to comment.