Browse Source

Examples: use import maps + polyfill (#23255)

* Examples: make esamples/jsm folder import form three

* Examples: add importmap + polyfill in example files

* Examples: import * as THREE from 'three'

* Examples: replace missing relative imports

* Examples: replace missing relative imports
Marco Fugaro 3 years ago
parent
commit
eadd35e44c
100 changed files with 196 additions and 100 deletions
  1. 13 1
      examples/css2d_label.html
  2. 13 1
      examples/css3d_molecules.html
  3. 13 1
      examples/css3d_orthographic.html
  4. 13 1
      examples/css3d_periodictable.html
  5. 13 1
      examples/css3d_sandbox.html
  6. 13 1
      examples/css3d_sprites.html
  7. 13 1
      examples/css3d_youtube.html
  8. 13 1
      examples/games_fps.html
  9. 1 1
      examples/jsm/animation/AnimationClipCreator.js
  10. 1 1
      examples/jsm/animation/CCDIKSolver.js
  11. 1 1
      examples/jsm/animation/MMDAnimationHelper.js
  12. 1 1
      examples/jsm/animation/MMDPhysics.js
  13. 1 1
      examples/jsm/cameras/CinematicCamera.js
  14. 1 1
      examples/jsm/controls/ArcballControls.js
  15. 1 1
      examples/jsm/controls/DragControls.js
  16. 1 1
      examples/jsm/controls/FirstPersonControls.js
  17. 1 1
      examples/jsm/controls/FlyControls.js
  18. 1 1
      examples/jsm/controls/OrbitControls.js
  19. 1 1
      examples/jsm/controls/PointerLockControls.js
  20. 1 1
      examples/jsm/controls/TrackballControls.js
  21. 1 1
      examples/jsm/controls/TransformControls.js
  22. 1 1
      examples/jsm/controls/experimental/CameraControls.js
  23. 1 1
      examples/jsm/csm/CSM.js
  24. 1 1
      examples/jsm/csm/CSMFrustum.js
  25. 1 1
      examples/jsm/csm/CSMHelper.js
  26. 1 1
      examples/jsm/csm/CSMShader.js
  27. 1 1
      examples/jsm/curves/CurveExtras.js
  28. 1 1
      examples/jsm/curves/NURBSCurve.js
  29. 1 1
      examples/jsm/curves/NURBSSurface.js
  30. 1 1
      examples/jsm/curves/NURBSUtils.js
  31. 1 1
      examples/jsm/deprecated/Geometry.js
  32. 1 1
      examples/jsm/effects/AnaglyphEffect.js
  33. 1 1
      examples/jsm/effects/OutlineEffect.js
  34. 1 1
      examples/jsm/effects/ParallaxBarrierEffect.js
  35. 1 1
      examples/jsm/effects/PeppersGhostEffect.js
  36. 1 1
      examples/jsm/effects/StereoEffect.js
  37. 1 1
      examples/jsm/environments/DebugEnvironment.js
  38. 1 1
      examples/jsm/environments/RoomEnvironment.js
  39. 1 1
      examples/jsm/exporters/ColladaExporter.js
  40. 1 1
      examples/jsm/exporters/GLTFExporter.js
  41. 1 1
      examples/jsm/exporters/MMDExporter.js
  42. 1 1
      examples/jsm/exporters/OBJExporter.js
  43. 1 1
      examples/jsm/exporters/PLYExporter.js
  44. 1 1
      examples/jsm/exporters/STLExporter.js
  45. 1 1
      examples/jsm/geometries/BoxLineGeometry.js
  46. 1 1
      examples/jsm/geometries/ConvexGeometry.js
  47. 1 1
      examples/jsm/geometries/DecalGeometry.js
  48. 1 1
      examples/jsm/geometries/LightningStrike.js
  49. 1 1
      examples/jsm/geometries/ParametricGeometries.js
  50. 1 1
      examples/jsm/geometries/ParametricGeometry.js
  51. 1 1
      examples/jsm/geometries/RoundedBoxGeometry.js
  52. 1 1
      examples/jsm/geometries/TeapotGeometry.js
  53. 1 1
      examples/jsm/geometries/TextGeometry.js
  54. 1 1
      examples/jsm/helpers/LightProbeHelper.js
  55. 1 1
      examples/jsm/helpers/PositionalAudioHelper.js
  56. 1 1
      examples/jsm/helpers/RectAreaLightHelper.js
  57. 1 1
      examples/jsm/helpers/VertexNormalsHelper.js
  58. 1 1
      examples/jsm/helpers/VertexTangentsHelper.js
  59. 1 1
      examples/jsm/interactive/HTMLMesh.js
  60. 1 1
      examples/jsm/interactive/InteractiveGroup.js
  61. 1 1
      examples/jsm/interactive/SelectionBox.js
  62. 1 1
      examples/jsm/interactive/SelectionHelper.js
  63. 1 1
      examples/jsm/lights/LightProbeGenerator.js
  64. 1 1
      examples/jsm/lights/RectAreaLightUniformsLib.js
  65. 1 1
      examples/jsm/lines/LineMaterial.js
  66. 1 1
      examples/jsm/lines/LineSegments2.js
  67. 1 1
      examples/jsm/lines/LineSegmentsGeometry.js
  68. 1 1
      examples/jsm/lines/Wireframe.js
  69. 1 1
      examples/jsm/lines/WireframeGeometry2.js
  70. 1 1
      examples/jsm/loaders/3DMLoader.js
  71. 1 1
      examples/jsm/loaders/3MFLoader.js
  72. 1 1
      examples/jsm/loaders/AMFLoader.js
  73. 1 1
      examples/jsm/loaders/BVHLoader.js
  74. 1 1
      examples/jsm/loaders/BasisTextureLoader.js
  75. 1 1
      examples/jsm/loaders/ColladaLoader.js
  76. 1 1
      examples/jsm/loaders/DDSLoader.js
  77. 1 1
      examples/jsm/loaders/DRACOLoader.js
  78. 1 1
      examples/jsm/loaders/EXRLoader.js
  79. 1 1
      examples/jsm/loaders/FBXLoader.js
  80. 1 1
      examples/jsm/loaders/FontLoader.js
  81. 1 1
      examples/jsm/loaders/GCodeLoader.js
  82. 1 1
      examples/jsm/loaders/GLTFLoader.js
  83. 1 1
      examples/jsm/loaders/HDRCubeTextureLoader.js
  84. 1 1
      examples/jsm/loaders/IFCLoader.js
  85. 1 1
      examples/jsm/loaders/KMZLoader.js
  86. 1 1
      examples/jsm/loaders/KTX2Loader.js
  87. 1 1
      examples/jsm/loaders/KTXLoader.js
  88. 1 1
      examples/jsm/loaders/LDrawLoader.js
  89. 1 1
      examples/jsm/loaders/LUT3dlLoader.js
  90. 1 1
      examples/jsm/loaders/LUTCubeLoader.js
  91. 1 1
      examples/jsm/loaders/LWOLoader.js
  92. 1 1
      examples/jsm/loaders/LogLuvLoader.js
  93. 1 1
      examples/jsm/loaders/LottieLoader.js
  94. 1 1
      examples/jsm/loaders/MD2Loader.js
  95. 1 1
      examples/jsm/loaders/MDDLoader.js
  96. 1 1
      examples/jsm/loaders/MMDLoader.js
  97. 1 1
      examples/jsm/loaders/MTLLoader.js
  98. 1 1
      examples/jsm/loaders/NRRDLoader.js
  99. 1 1
      examples/jsm/loaders/NodeMaterialLoader.js
  100. 1 1
      examples/jsm/loaders/OBJLoader.js

+ 13 - 1
examples/css2d_label.html

@@ -17,9 +17,21 @@
 	<body>
 	<body>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css2d - label</div>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css2d - label</div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 			import { CSS2DRenderer, CSS2DObject } from './jsm/renderers/CSS2DRenderer.js';
 			import { CSS2DRenderer, CSS2DObject } from './jsm/renderers/CSS2DRenderer.js';

+ 13 - 1
examples/css3d_molecules.html

@@ -64,9 +64,21 @@
 		</div>
 		</div>
 		<div id="menu"></div>
 		<div id="menu"></div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { PDBLoader } from './jsm/loaders/PDBLoader.js';
 			import { PDBLoader } from './jsm/loaders/PDBLoader.js';

+ 13 - 1
examples/css3d_orthographic.html

@@ -20,9 +20,21 @@
 	<body>
 	<body>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - orthographic</div>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - orthographic</div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';

+ 13 - 1
examples/css3d_periodictable.html

@@ -91,9 +91,21 @@
 			<button id="grid">GRID</button>
 			<button id="grid">GRID</button>
 		</div>
 		</div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { TWEEN } from './jsm/libs/tween.module.min.js';
 			import { TWEEN } from './jsm/libs/tween.module.min.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';

+ 13 - 1
examples/css3d_sandbox.html

@@ -16,9 +16,21 @@
 	<body>
 	<body>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - sandbox</div>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - sandbox</div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';

+ 13 - 1
examples/css3d_sprites.html

@@ -20,9 +20,21 @@
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - sprites</div>
 		<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - sprites</div>
 		<div id="container"></div>
 		<div id="container"></div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { TWEEN } from './jsm/libs/tween.module.min.js';
 			import { TWEEN } from './jsm/libs/tween.module.min.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';

+ 13 - 1
examples/css3d_youtube.html

@@ -23,9 +23,21 @@
 		<div id="container"></div>
 		<div id="container"></div>
 		<div id="blocker"></div>
 		<div id="blocker"></div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { TrackballControls } from './jsm/controls/TrackballControls.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';
 			import { CSS3DRenderer, CSS3DObject } from './jsm/renderers/CSS3DRenderer.js';

+ 13 - 1
examples/games_fps.html

@@ -10,9 +10,21 @@
 		<div id="info">Octree threejs demo - basic collisions with static triangle mesh<br />WASD to move, space to jump, use mouse to throw balls and move the camera.</div>
 		<div id="info">Octree threejs demo - basic collisions with static triangle mesh<br />WASD to move, space to jump, use mouse to throw balls and move the camera.</div>
 		<div id="container"></div>
 		<div id="container"></div>
 
 
+		<!-- Import maps polyfill -->
+		<!-- Remove this when import maps will be widely supported -->
+		<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
+
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js"
+				}
+			}
+		</script>
+
 		<script type="module">
 		<script type="module">
 
 
-			import * as THREE from '../build/three.module.js';
+			import * as THREE from 'three';
 
 
 			import Stats from './jsm/libs/stats.module.js';
 			import Stats from './jsm/libs/stats.module.js';
 
 

+ 1 - 1
examples/jsm/animation/AnimationClipCreator.js

@@ -5,7 +5,7 @@ import {
 	NumberKeyframeTrack,
 	NumberKeyframeTrack,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class AnimationClipCreator {
 class AnimationClipCreator {
 
 

+ 1 - 1
examples/jsm/animation/CCDIKSolver.js

@@ -11,7 +11,7 @@ import {
 	Quaternion,
 	Quaternion,
 	SphereGeometry,
 	SphereGeometry,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _q = new Quaternion();
 const _q = new Quaternion();
 const _targetPos = new Vector3();
 const _targetPos = new Vector3();

+ 1 - 1
examples/jsm/animation/MMDAnimationHelper.js

@@ -3,7 +3,7 @@ import {
 	Object3D,
 	Object3D,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 import { CCDIKSolver } from '../animation/CCDIKSolver.js';
 import { CCDIKSolver } from '../animation/CCDIKSolver.js';
 import { MMDPhysics } from '../animation/MMDPhysics.js';
 import { MMDPhysics } from '../animation/MMDPhysics.js';
 
 

+ 1 - 1
examples/jsm/animation/MMDPhysics.js

@@ -11,7 +11,7 @@ import {
 	Quaternion,
 	Quaternion,
 	SphereGeometry,
 	SphereGeometry,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Dependencies
  * Dependencies

+ 1 - 1
examples/jsm/cameras/CinematicCamera.js

@@ -7,7 +7,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	UniformsUtils,
 	UniformsUtils,
 	WebGLRenderTarget
 	WebGLRenderTarget
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 import { BokehShader } from '../shaders/BokehShader2.js';
 import { BokehShader } from '../shaders/BokehShader2.js';
 import { BokehDepthShader } from '../shaders/BokehShader2.js';
 import { BokehDepthShader } from '../shaders/BokehShader2.js';

+ 1 - 1
examples/jsm/controls/ArcballControls.js

@@ -14,7 +14,7 @@ import {
 	Matrix4,
 	Matrix4,
 	MathUtils,
 	MathUtils,
 	EventDispatcher
 	EventDispatcher
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 //trackball state
 //trackball state
 const STATE = {
 const STATE = {

+ 1 - 1
examples/jsm/controls/DragControls.js

@@ -5,7 +5,7 @@ import {
 	Raycaster,
 	Raycaster,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _plane = new Plane();
 const _plane = new Plane();
 const _raycaster = new Raycaster();
 const _raycaster = new Raycaster();

+ 1 - 1
examples/jsm/controls/FirstPersonControls.js

@@ -2,7 +2,7 @@ import {
 	MathUtils,
 	MathUtils,
 	Spherical,
 	Spherical,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _lookDirection = new Vector3();
 const _lookDirection = new Vector3();
 const _spherical = new Spherical();
 const _spherical = new Spherical();

+ 1 - 1
examples/jsm/controls/FlyControls.js

@@ -2,7 +2,7 @@ import {
 	EventDispatcher,
 	EventDispatcher,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _changeEvent = { type: 'change' };
 const _changeEvent = { type: 'change' };
 
 

+ 1 - 1
examples/jsm/controls/OrbitControls.js

@@ -6,7 +6,7 @@ import {
 	TOUCH,
 	TOUCH,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 // This set of controls performs orbiting, dollying (zooming), and panning.
 // This set of controls performs orbiting, dollying (zooming), and panning.
 // Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
 // Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).

+ 1 - 1
examples/jsm/controls/PointerLockControls.js

@@ -2,7 +2,7 @@ import {
 	Euler,
 	Euler,
 	EventDispatcher,
 	EventDispatcher,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _euler = new Euler( 0, 0, 0, 'YXZ' );
 const _euler = new Euler( 0, 0, 0, 'YXZ' );
 const _vector = new Vector3();
 const _vector = new Vector3();

+ 1 - 1
examples/jsm/controls/TrackballControls.js

@@ -4,7 +4,7 @@ import {
 	Quaternion,
 	Quaternion,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _changeEvent = { type: 'change' };
 const _changeEvent = { type: 'change' };
 const _startEvent = { type: 'start' };
 const _startEvent = { type: 'start' };

+ 1 - 1
examples/jsm/controls/TransformControls.js

@@ -18,7 +18,7 @@ import {
 	SphereGeometry,
 	SphereGeometry,
 	TorusGeometry,
 	TorusGeometry,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _raycaster = new Raycaster();
 const _raycaster = new Raycaster();
 
 

+ 1 - 1
examples/jsm/controls/experimental/CameraControls.js

@@ -6,7 +6,7 @@ import {
 	TOUCH,
 	TOUCH,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../../build/three.module.js';
+} from 'three';
 
 
 var CameraControls = function ( object, domElement ) {
 var CameraControls = function ( object, domElement ) {
 
 

+ 1 - 1
examples/jsm/csm/CSM.js

@@ -6,7 +6,7 @@ import {
 	ShaderChunk,
 	ShaderChunk,
 	Matrix4,
 	Matrix4,
 	Box3
 	Box3
-} from '../../../build/three.module.js';
+} from 'three';
 import { CSMFrustum } from './CSMFrustum.js';
 import { CSMFrustum } from './CSMFrustum.js';
 import { CSMShader } from './CSMShader.js';
 import { CSMShader } from './CSMShader.js';
 
 

+ 1 - 1
examples/jsm/csm/CSMFrustum.js

@@ -1,4 +1,4 @@
-import { Vector3, Matrix4 } from '../../../build/three.module.js';
+import { Vector3, Matrix4 } from 'three';
 
 
 const inverseProjectionMatrix = new Matrix4();
 const inverseProjectionMatrix = new Matrix4();
 
 

+ 1 - 1
examples/jsm/csm/CSMHelper.js

@@ -10,7 +10,7 @@ import {
 	MeshBasicMaterial,
 	MeshBasicMaterial,
 	BufferAttribute,
 	BufferAttribute,
 	DoubleSide
 	DoubleSide
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class CSMHelper extends Group {
 class CSMHelper extends Group {
 
 

+ 1 - 1
examples/jsm/csm/CSMShader.js

@@ -1,4 +1,4 @@
-import { ShaderChunk } from '../../../build/three.module.js';
+import { ShaderChunk } from 'three';
 
 
 const CSMShader = {
 const CSMShader = {
 	lights_fragment_begin: /* glsl */`
 	lights_fragment_begin: /* glsl */`

+ 1 - 1
examples/jsm/curves/CurveExtras.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Curve,
 	Curve,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * A bunch of parametric curves
  * A bunch of parametric curves

+ 1 - 1
examples/jsm/curves/NURBSCurve.js

@@ -2,7 +2,7 @@ import {
 	Curve,
 	Curve,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from '../../../build/three.module.js';
+} from 'three';
 import * as NURBSUtils from '../curves/NURBSUtils.js';
 import * as NURBSUtils from '../curves/NURBSUtils.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/curves/NURBSSurface.js

@@ -1,6 +1,6 @@
 import {
 import {
 	Vector4
 	Vector4
-} from '../../../build/three.module.js';
+} from 'three';
 import * as NURBSUtils from '../curves/NURBSUtils.js';
 import * as NURBSUtils from '../curves/NURBSUtils.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/curves/NURBSUtils.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * NURBS utils
  * NURBS utils

+ 1 - 1
examples/jsm/deprecated/Geometry.js

@@ -12,7 +12,7 @@ import {
 	Sphere,
 	Sphere,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _m1 = new Matrix4();
 const _m1 = new Matrix4();
 const _obj = new Object3D();
 const _obj = new Object3D();

+ 1 - 1
examples/jsm/effects/AnaglyphEffect.js

@@ -10,7 +10,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	StereoCamera,
 	StereoCamera,
 	WebGLRenderTarget
 	WebGLRenderTarget
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class AnaglyphEffect {
 class AnaglyphEffect {
 
 

+ 1 - 1
examples/jsm/effects/OutlineEffect.js

@@ -4,7 +4,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	UniformsLib,
 	UniformsLib,
 	UniformsUtils
 	UniformsUtils
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Reference: https://en.wikipedia.org/wiki/Cel_shading
  * Reference: https://en.wikipedia.org/wiki/Cel_shading

+ 1 - 1
examples/jsm/effects/ParallaxBarrierEffect.js

@@ -9,7 +9,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	StereoCamera,
 	StereoCamera,
 	WebGLRenderTarget
 	WebGLRenderTarget
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class ParallaxBarrierEffect {
 class ParallaxBarrierEffect {
 
 

+ 1 - 1
examples/jsm/effects/PeppersGhostEffect.js

@@ -2,7 +2,7 @@ import {
 	PerspectiveCamera,
 	PerspectiveCamera,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * peppers ghost effect based on http://www.instructables.com/id/Reflective-Prism/?ALLSTEPS
  * peppers ghost effect based on http://www.instructables.com/id/Reflective-Prism/?ALLSTEPS

+ 1 - 1
examples/jsm/effects/StereoEffect.js

@@ -1,7 +1,7 @@
 import {
 import {
 	StereoCamera,
 	StereoCamera,
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class StereoEffect {
 class StereoEffect {
 
 

+ 1 - 1
examples/jsm/environments/DebugEnvironment.js

@@ -6,7 +6,7 @@ import {
 	MeshStandardMaterial,
 	MeshStandardMaterial,
 	PointLight,
 	PointLight,
 	Scene,
 	Scene,
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class DebugEnvironment extends Scene {
 class DebugEnvironment extends Scene {
 
 

+ 1 - 1
examples/jsm/environments/RoomEnvironment.js

@@ -10,7 +10,7 @@ import {
  	MeshStandardMaterial,
  	MeshStandardMaterial,
  	PointLight,
  	PointLight,
  	Scene,
  	Scene,
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class RoomEnvironment extends Scene {
 class RoomEnvironment extends Scene {
 
 

+ 1 - 1
examples/jsm/exporters/ColladaExporter.js

@@ -3,7 +3,7 @@ import {
 	DoubleSide,
 	DoubleSide,
 	Matrix4,
 	Matrix4,
 	MeshBasicMaterial
 	MeshBasicMaterial
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * https://github.com/gkjohnson/collada-exporter-js
  * https://github.com/gkjohnson/collada-exporter-js

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -18,7 +18,7 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	Scene,
 	Scene,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 
 
 class GLTFExporter {
 class GLTFExporter {

+ 1 - 1
examples/jsm/exporters/MMDExporter.js

@@ -2,7 +2,7 @@ import {
 	Matrix4,
 	Matrix4,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 import { MMDParser } from '../libs/mmdparser.module.js';
 import { MMDParser } from '../libs/mmdparser.module.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/exporters/OBJExporter.js

@@ -3,7 +3,7 @@ import {
 	Matrix3,
 	Matrix3,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class OBJExporter {
 class OBJExporter {
 
 

+ 1 - 1
examples/jsm/exporters/PLYExporter.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Matrix3,
 	Matrix3,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * https://github.com/gkjohnson/ply-exporter-js
  * https://github.com/gkjohnson/ply-exporter-js

+ 1 - 1
examples/jsm/exporters/STLExporter.js

@@ -1,6 +1,6 @@
 import {
 import {
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Usage:
  * Usage:

+ 1 - 1
examples/jsm/geometries/BoxLineGeometry.js

@@ -1,7 +1,7 @@
 import {
 import {
 	BufferGeometry,
 	BufferGeometry,
 	Float32BufferAttribute
 	Float32BufferAttribute
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class BoxLineGeometry extends BufferGeometry {
 class BoxLineGeometry extends BufferGeometry {
 
 

+ 1 - 1
examples/jsm/geometries/ConvexGeometry.js

@@ -1,7 +1,7 @@
 import {
 import {
 	BufferGeometry,
 	BufferGeometry,
 	Float32BufferAttribute
 	Float32BufferAttribute
-} from '../../../build/three.module.js';
+} from 'three';
 import { ConvexHull } from '../math/ConvexHull.js';
 import { ConvexHull } from '../math/ConvexHull.js';
 
 
 class ConvexGeometry extends BufferGeometry {
 class ConvexGeometry extends BufferGeometry {

+ 1 - 1
examples/jsm/geometries/DecalGeometry.js

@@ -3,7 +3,7 @@ import {
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Matrix4,
 	Matrix4,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * You can use this geometry to create a decal mesh, that serves different kinds of purposes.
  * You can use this geometry to create a decal mesh, that serves different kinds of purposes.

+ 1 - 1
examples/jsm/geometries/LightningStrike.js

@@ -5,7 +5,7 @@ import {
 	MathUtils,
 	MathUtils,
 	Uint32BufferAttribute,
 	Uint32BufferAttribute,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 import { SimplexNoise } from '../math/SimplexNoise.js';
 import { SimplexNoise } from '../math/SimplexNoise.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/geometries/ParametricGeometries.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Curve,
 	Curve,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 import { ParametricGeometry } from './ParametricGeometry.js';
 import { ParametricGeometry } from './ParametricGeometry.js';
 
 

+ 1 - 1
examples/jsm/geometries/ParametricGeometry.js

@@ -7,7 +7,7 @@ import {
 	BufferGeometry,
 	BufferGeometry,
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class ParametricGeometry extends BufferGeometry {
 class ParametricGeometry extends BufferGeometry {
 
 

+ 1 - 1
examples/jsm/geometries/RoundedBoxGeometry.js

@@ -1,7 +1,7 @@
 import {
 import {
 	BoxGeometry,
 	BoxGeometry,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _tempNormal = new Vector3();
 const _tempNormal = new Vector3();
 
 

+ 1 - 1
examples/jsm/geometries/TeapotGeometry.js

@@ -4,7 +4,7 @@ import {
 	Matrix4,
 	Matrix4,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Tessellates the famous Utah teapot database by Martin Newell into triangles.
  * Tessellates the famous Utah teapot database by Martin Newell into triangles.

+ 1 - 1
examples/jsm/geometries/TextGeometry.js

@@ -17,7 +17,7 @@
 
 
 import {
 import {
 	ExtrudeGeometry
 	ExtrudeGeometry
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class TextGeometry extends ExtrudeGeometry {
 class TextGeometry extends ExtrudeGeometry {
 
 

+ 1 - 1
examples/jsm/helpers/LightProbeHelper.js

@@ -2,7 +2,7 @@ import {
 	Mesh,
 	Mesh,
 	ShaderMaterial,
 	ShaderMaterial,
 	SphereGeometry
 	SphereGeometry
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class LightProbeHelper extends Mesh {
 class LightProbeHelper extends Mesh {
 
 

+ 1 - 1
examples/jsm/helpers/PositionalAudioHelper.js

@@ -4,7 +4,7 @@ import {
 	LineBasicMaterial,
 	LineBasicMaterial,
 	Line,
 	Line,
 	MathUtils
 	MathUtils
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class PositionalAudioHelper extends Line {
 class PositionalAudioHelper extends Line {
 
 

+ 1 - 1
examples/jsm/helpers/RectAreaLightHelper.js

@@ -6,7 +6,7 @@ import {
 	LineBasicMaterial,
 	LineBasicMaterial,
 	Mesh,
 	Mesh,
 	MeshBasicMaterial
 	MeshBasicMaterial
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  *  This helper must be added as a child of the light
  *  This helper must be added as a child of the light

+ 1 - 1
examples/jsm/helpers/VertexNormalsHelper.js

@@ -5,7 +5,7 @@ import {
 	LineBasicMaterial,
 	LineBasicMaterial,
 	Matrix3,
 	Matrix3,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _v1 = new Vector3();
 const _v1 = new Vector3();
 const _v2 = new Vector3();
 const _v2 = new Vector3();

+ 1 - 1
examples/jsm/helpers/VertexTangentsHelper.js

@@ -4,7 +4,7 @@ import {
 	LineSegments,
 	LineSegments,
 	LineBasicMaterial,
 	LineBasicMaterial,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _v1 = new Vector3();
 const _v1 = new Vector3();
 const _v2 = new Vector3();
 const _v2 = new Vector3();

+ 1 - 1
examples/jsm/interactive/HTMLMesh.js

@@ -5,7 +5,7 @@ import {
 	MeshBasicMaterial,
 	MeshBasicMaterial,
 	PlaneGeometry,
 	PlaneGeometry,
 	sRGBEncoding
 	sRGBEncoding
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class HTMLMesh extends Mesh {
 class HTMLMesh extends Mesh {
 
 

+ 1 - 1
examples/jsm/interactive/InteractiveGroup.js

@@ -3,7 +3,7 @@ import {
 	Matrix4,
 	Matrix4,
 	Raycaster,
 	Raycaster,
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _pointer = new Vector2();
 const _pointer = new Vector2();
 const _event = { type: '', data: _pointer };
 const _event = { type: '', data: _pointer };

+ 1 - 1
examples/jsm/interactive/SelectionBox.js

@@ -3,7 +3,7 @@ import {
 	Vector3,
 	Vector3,
 	Matrix4,
 	Matrix4,
 	Quaternion,
 	Quaternion,
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * This is a class to check whether objects are in a selection area in 3D space
  * This is a class to check whether objects are in a selection area in 3D space

+ 1 - 1
examples/jsm/interactive/SelectionHelper.js

@@ -1,6 +1,6 @@
 import {
 import {
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class SelectionHelper {
 class SelectionHelper {
 
 

+ 1 - 1
examples/jsm/lights/LightProbeGenerator.js

@@ -5,7 +5,7 @@ import {
 	SphericalHarmonics3,
 	SphericalHarmonics3,
 	Vector3,
 	Vector3,
 	sRGBEncoding
 	sRGBEncoding
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class LightProbeGenerator {
 class LightProbeGenerator {
 
 

+ 1 - 1
examples/jsm/lights/RectAreaLightUniformsLib.js

@@ -9,7 +9,7 @@ import {
 	RGBAFormat,
 	RGBAFormat,
 	UVMapping,
 	UVMapping,
 	UniformsLib
 	UniformsLib
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Uniforms library for RectAreaLight shared webgl shaders
  * Uniforms library for RectAreaLight shared webgl shaders

+ 1 - 1
examples/jsm/lines/LineMaterial.js

@@ -17,7 +17,7 @@ import {
 	UniformsLib,
 	UniformsLib,
 	UniformsUtils,
 	UniformsUtils,
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 
 
 UniformsLib.line = {
 UniformsLib.line = {

+ 1 - 1
examples/jsm/lines/LineSegments2.js

@@ -9,7 +9,7 @@ import {
 	Sphere,
 	Sphere,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from '../../../build/three.module.js';
+} from 'three';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 import { LineMaterial } from '../lines/LineMaterial.js';
 import { LineMaterial } from '../lines/LineMaterial.js';
 
 

+ 1 - 1
examples/jsm/lines/LineSegmentsGeometry.js

@@ -7,7 +7,7 @@ import {
 	Sphere,
 	Sphere,
 	Vector3,
 	Vector3,
 	WireframeGeometry
 	WireframeGeometry
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _box = new Box3();
 const _box = new Box3();
 const _vector = new Vector3();
 const _vector = new Vector3();

+ 1 - 1
examples/jsm/lines/Wireframe.js

@@ -3,7 +3,7 @@ import {
 	InterleavedBufferAttribute,
 	InterleavedBufferAttribute,
 	Mesh,
 	Mesh,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 import { LineMaterial } from '../lines/LineMaterial.js';
 import { LineMaterial } from '../lines/LineMaterial.js';
 
 

+ 1 - 1
examples/jsm/lines/WireframeGeometry2.js

@@ -1,6 +1,6 @@
 import {
 import {
 	WireframeGeometry
 	WireframeGeometry
-} from '../../../build/three.module.js';
+} from 'three';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 
 
 class WireframeGeometry2 extends LineSegmentsGeometry {
 class WireframeGeometry2 extends LineSegmentsGeometry {

+ 1 - 1
examples/jsm/loaders/3DMLoader.js

@@ -22,7 +22,7 @@ import {
 	LinearFilter,
 	LinearFilter,
 	ClampToEdgeWrapping,
 	ClampToEdgeWrapping,
 	TextureLoader
 	TextureLoader
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _taskCache = new WeakMap();
 const _taskCache = new WeakMap();
 
 

+ 1 - 1
examples/jsm/loaders/3MFLoader.js

@@ -19,7 +19,7 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	TextureLoader,
 	TextureLoader,
 	sRGBEncoding
 	sRGBEncoding
-} from '../../../build/three.module.js';
+} from 'three';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/loaders/AMFLoader.js

@@ -8,7 +8,7 @@ import {
 	LoaderUtils,
 	LoaderUtils,
 	Mesh,
 	Mesh,
 	MeshPhongMaterial
 	MeshPhongMaterial
-} from '../../../build/three.module.js';
+} from 'three';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/loaders/BVHLoader.js

@@ -8,7 +8,7 @@ import {
 	Skeleton,
 	Skeleton,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Description: reads BVH files and outputs a single Skeleton and an AnimationClip
  * Description: reads BVH files and outputs a single Skeleton and an AnimationClip

+ 1 - 1
examples/jsm/loaders/BasisTextureLoader.js

@@ -15,7 +15,7 @@ import {
 	RGB_PVRTC_4BPPV1_Format,
 	RGB_PVRTC_4BPPV1_Format,
 	RGB_S3TC_DXT1_Format,
 	RGB_S3TC_DXT1_Format,
 	UnsignedByteType
 	UnsignedByteType
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Loader for Basis Universal GPU Texture Codec.
  * Loader for Basis Universal GPU Texture Codec.

+ 1 - 1
examples/jsm/loaders/ColladaLoader.js

@@ -37,7 +37,7 @@ import {
 	Vector2,
 	Vector2,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from '../../../build/three.module.js';
+} from 'three';
 import { TGALoader } from '../loaders/TGALoader.js';
 import { TGALoader } from '../loaders/TGALoader.js';
 
 
 class ColladaLoader extends Loader {
 class ColladaLoader extends Loader {

+ 1 - 1
examples/jsm/loaders/DDSLoader.js

@@ -5,7 +5,7 @@ import {
 	RGBA_S3TC_DXT5_Format,
 	RGBA_S3TC_DXT5_Format,
 	RGB_ETC1_Format,
 	RGB_ETC1_Format,
 	RGB_S3TC_DXT1_Format
 	RGB_S3TC_DXT1_Format
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class DDSLoader extends CompressedTextureLoader {
 class DDSLoader extends CompressedTextureLoader {
 
 

+ 1 - 1
examples/jsm/loaders/DRACOLoader.js

@@ -3,7 +3,7 @@ import {
 	BufferGeometry,
 	BufferGeometry,
 	FileLoader,
 	FileLoader,
 	Loader
 	Loader
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _taskCache = new WeakMap();
 const _taskCache = new WeakMap();
 
 

+ 1 - 1
examples/jsm/loaders/EXRLoader.js

@@ -7,7 +7,7 @@ import {
 	LinearFilter,
 	LinearFilter,
 	RedFormat,
 	RedFormat,
 	RGBAFormat
 	RGBAFormat
-} from '../../../build/three.module.js';
+} from 'three';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 
 
 /**
 /**

+ 1 - 1
examples/jsm/loaders/FBXLoader.js

@@ -40,7 +40,7 @@ import {
 	Vector4,
 	Vector4,
 	VectorKeyframeTrack,
 	VectorKeyframeTrack,
 	sRGBEncoding
 	sRGBEncoding
-} from '../../../build/three.module.js';
+} from 'three';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 import { NURBSCurve } from '../curves/NURBSCurve.js';
 import { NURBSCurve } from '../curves/NURBSCurve.js';
 
 

+ 1 - 1
examples/jsm/loaders/FontLoader.js

@@ -2,7 +2,7 @@ import {
 	FileLoader,
 	FileLoader,
 	Loader,
 	Loader,
 	ShapePath
 	ShapePath
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class FontLoader extends Loader {
 class FontLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/GCodeLoader.js

@@ -7,7 +7,7 @@ import {
 	LineBasicMaterial,
 	LineBasicMaterial,
 	LineSegments,
 	LineSegments,
 	Loader
 	Loader
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * GCodeLoader is used to load gcode files usually used for 3D printing or CNC applications.
  * GCodeLoader is used to load gcode files usually used for 3D printing or CNC applications.

+ 1 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -61,7 +61,7 @@ import {
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack,
 	VectorKeyframeTrack,
 	sRGBEncoding
 	sRGBEncoding
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class GLTFLoader extends Loader {
 class GLTFLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/HDRCubeTextureLoader.js

@@ -7,7 +7,7 @@ import {
 	LinearEncoding,
 	LinearEncoding,
 	LinearFilter,
 	LinearFilter,
 	Loader
 	Loader
-} from '../../../build/three.module.js';
+} from 'three';
 import { RGBELoader } from '../loaders/RGBELoader.js';
 import { RGBELoader } from '../loaders/RGBELoader.js';
 
 
 class HDRCubeTextureLoader extends Loader {
 class HDRCubeTextureLoader extends Loader {

+ 1 - 1
examples/jsm/loaders/IFCLoader.js

@@ -17,7 +17,7 @@ import {
 	DoubleSide,
 	DoubleSide,
 	Loader,
 	Loader,
 	FileLoader
 	FileLoader
-} from '../../../build/three.module.js';
+} from 'three';
 import { mergeBufferGeometries } from '../utils/BufferGeometryUtils.js';
 import { mergeBufferGeometries } from '../utils/BufferGeometryUtils.js';
 
 
 const IdAttrName = 'expressID';
 const IdAttrName = 'expressID';

+ 1 - 1
examples/jsm/loaders/KMZLoader.js

@@ -3,7 +3,7 @@ import {
 	Group,
 	Group,
 	Loader,
 	Loader,
 	LoadingManager
 	LoadingManager
-} from '../../../build/three.module.js';
+} from 'three';
 import { ColladaLoader } from '../loaders/ColladaLoader.js';
 import { ColladaLoader } from '../loaders/ColladaLoader.js';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 
 

+ 1 - 1
examples/jsm/loaders/KTX2Loader.js

@@ -30,7 +30,7 @@ import {
 	RGB_S3TC_DXT1_Format,
 	RGB_S3TC_DXT1_Format,
 	sRGBEncoding,
 	sRGBEncoding,
 	UnsignedByteType
 	UnsignedByteType
-} from '../../../build/three.module.js';
+} from 'three';
 import { WorkerPool } from '../utils/WorkerPool.js';
 import { WorkerPool } from '../utils/WorkerPool.js';
 
 
 const KTX2TransferSRGB = 2;
 const KTX2TransferSRGB = 2;

+ 1 - 1
examples/jsm/loaders/KTXLoader.js

@@ -1,6 +1,6 @@
 import {
 import {
 	CompressedTextureLoader
 	CompressedTextureLoader
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * for description see https://www.khronos.org/opengles/sdk/tools/KTX/
  * for description see https://www.khronos.org/opengles/sdk/tools/KTX/

+ 1 - 1
examples/jsm/loaders/LDrawLoader.js

@@ -15,7 +15,7 @@ import {
 	UniformsUtils,
 	UniformsUtils,
 	Vector3,
 	Vector3,
 	Ray
 	Ray
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 // Special surface finish tag types.
 // Special surface finish tag types.
 // Note: "MATERIAL" tag (e.g. GLITTER, SPECKLE) is not implemented
 // Note: "MATERIAL" tag (e.g. GLITTER, SPECKLE) is not implemented

+ 1 - 1
examples/jsm/loaders/LUT3dlLoader.js

@@ -9,7 +9,7 @@ import {
 	UnsignedByteType,
 	UnsignedByteType,
 	ClampToEdgeWrapping,
 	ClampToEdgeWrapping,
 	LinearFilter,
 	LinearFilter,
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 export class LUT3dlLoader extends Loader {
 export class LUT3dlLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/LUTCubeLoader.js

@@ -9,7 +9,7 @@ import {
 	UnsignedByteType,
 	UnsignedByteType,
 	ClampToEdgeWrapping,
 	ClampToEdgeWrapping,
 	LinearFilter,
 	LinearFilter,
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 export class LUTCubeLoader extends Loader {
 export class LUTCubeLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/LWOLoader.js

@@ -37,7 +37,7 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	TextureLoader,
 	TextureLoader,
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 import { IFFParser } from './lwo/IFFParser.js';
 import { IFFParser } from './lwo/IFFParser.js';
 
 

+ 1 - 1
examples/jsm/loaders/LogLuvLoader.js

@@ -4,7 +4,7 @@ import {
 	FloatType,
 	FloatType,
 	HalfFloatType,
 	HalfFloatType,
 	RGBAFormat
 	RGBAFormat
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class LogLuvLoader extends DataTextureLoader {
 class LogLuvLoader extends DataTextureLoader {
 
 

+ 1 - 1
examples/jsm/loaders/LottieLoader.js

@@ -3,7 +3,7 @@ import {
 	Loader,
 	Loader,
 	CanvasTexture,
 	CanvasTexture,
 	NearestFilter
 	NearestFilter
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class LottieLoader extends Loader {
 class LottieLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/MD2Loader.js

@@ -5,7 +5,7 @@ import {
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Loader,
 	Loader,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 const _normalData = [
 const _normalData = [
 	[ - 0.525731, 0.000000, 0.850651 ], [ - 0.442863, 0.238856, 0.864188 ],
 	[ - 0.525731, 0.000000, 0.850651 ], [ - 0.442863, 0.238856, 0.864188 ],

+ 1 - 1
examples/jsm/loaders/MDDLoader.js

@@ -16,7 +16,7 @@ import {
 	FileLoader,
 	FileLoader,
 	Loader,
 	Loader,
 	NumberKeyframeTrack
 	NumberKeyframeTrack
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 class MDDLoader extends Loader {
 class MDDLoader extends Loader {
 
 

+ 1 - 1
examples/jsm/loaders/MMDLoader.js

@@ -36,7 +36,7 @@ import {
 	RGB_PVRTC_2BPPV1_Format,
 	RGB_PVRTC_2BPPV1_Format,
 	RGB_ETC1_Format,
 	RGB_ETC1_Format,
 	RGB_ETC2_Format
 	RGB_ETC2_Format
-} from '../../../build/three.module.js';
+} from 'three';
 import { MMDToonShader } from '../shaders/MMDToonShader.js';
 import { MMDToonShader } from '../shaders/MMDToonShader.js';
 import { TGALoader } from '../loaders/TGALoader.js';
 import { TGALoader } from '../loaders/TGALoader.js';
 import { MMDParser } from '../libs/mmdparser.module.js';
 import { MMDParser } from '../libs/mmdparser.module.js';

+ 1 - 1
examples/jsm/loaders/MTLLoader.js

@@ -9,7 +9,7 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	TextureLoader,
 	TextureLoader,
 	Vector2
 	Vector2
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 /**
 /**
  * Loads a Wavefront .mtl file specifying materials
  * Loads a Wavefront .mtl file specifying materials

+ 1 - 1
examples/jsm/loaders/NRRDLoader.js

@@ -3,7 +3,7 @@ import {
 	Loader,
 	Loader,
 	Matrix4,
 	Matrix4,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 import * as fflate from '../libs/fflate.module.js';
 import * as fflate from '../libs/fflate.module.js';
 import { Volume } from '../misc/Volume.js';
 import { Volume } from '../misc/Volume.js';
 
 

+ 1 - 1
examples/jsm/loaders/NodeMaterialLoader.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Loader,
 	Loader,
 	FileLoader
 	FileLoader
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 import * as Nodes from '../nodes/Nodes.js';
 import * as Nodes from '../nodes/Nodes.js';
 
 

+ 1 - 1
examples/jsm/loaders/OBJLoader.js

@@ -12,7 +12,7 @@ import {
 	Points,
 	Points,
 	PointsMaterial,
 	PointsMaterial,
 	Vector3
 	Vector3
-} from '../../../build/three.module.js';
+} from 'three';
 
 
 // o object_name | g group_name
 // o object_name | g group_name
 const _object_pattern = /^[og]\s*(.+)?/;
 const _object_pattern = /^[og]\s*(.+)?/;

Some files were not shown because too many files changed in this diff