فهرست منبع

Merge branch 'dev' into UtilsModularizeJsEscapeNtoEOL

Mr.doob 4 سال پیش
والد
کامیت
78d9b00744
100فایلهای تغییر یافته به همراه196 افزوده شده و 159 حذف شده
  1. 15 8
      build/three.js
  2. 0 0
      build/three.min.js
  3. 19 10
      build/three.module.js
  4. 4 1
      examples/js/exporters/GLTFExporter.js
  5. 1 1
      examples/jsm/animation/AnimationClipCreator.js
  6. 1 1
      examples/jsm/animation/CCDIKSolver.js
  7. 3 3
      examples/jsm/animation/MMDAnimationHelper.js
  8. 1 1
      examples/jsm/animation/MMDPhysics.js
  9. 3 3
      examples/jsm/cameras/CinematicCamera.js
  10. 1 1
      examples/jsm/controls/DeviceOrientationControls.d.ts
  11. 1 1
      examples/jsm/controls/DeviceOrientationControls.js
  12. 1 1
      examples/jsm/controls/DragControls.js
  13. 1 1
      examples/jsm/controls/FirstPersonControls.js
  14. 1 1
      examples/jsm/controls/FlyControls.js
  15. 1 1
      examples/jsm/controls/OrbitControls.js
  16. 1 1
      examples/jsm/controls/PointerLockControls.js
  17. 1 1
      examples/jsm/controls/TrackballControls.js
  18. 1 1
      examples/jsm/controls/TransformControls.js
  19. 1 1
      examples/jsm/controls/experimental/CameraControls.js
  20. 1 1
      examples/jsm/csm/CSM.d.ts
  21. 1 1
      examples/jsm/curves/CurveExtras.js
  22. 2 2
      examples/jsm/curves/NURBSCurve.js
  23. 2 2
      examples/jsm/curves/NURBSSurface.js
  24. 1 1
      examples/jsm/curves/NURBSUtils.js
  25. 1 1
      examples/jsm/effects/AnaglyphEffect.js
  26. 1 1
      examples/jsm/effects/OutlineEffect.js
  27. 1 1
      examples/jsm/effects/ParallaxBarrierEffect.js
  28. 1 1
      examples/jsm/effects/PeppersGhostEffect.js
  29. 1 1
      examples/jsm/effects/StereoEffect.js
  30. 1 1
      examples/jsm/exporters/ColladaExporter.js
  31. 1 1
      examples/jsm/exporters/DRACOExporter.js
  32. 7 3
      examples/jsm/exporters/GLTFExporter.js
  33. 2 2
      examples/jsm/exporters/MMDExporter.js
  34. 1 1
      examples/jsm/exporters/OBJExporter.js
  35. 1 1
      examples/jsm/exporters/PLYExporter.js
  36. 1 1
      examples/jsm/exporters/STLExporter.js
  37. 1 1
      examples/jsm/geometries/BoxLineGeometry.js
  38. 2 2
      examples/jsm/geometries/ConvexGeometry.js
  39. 1 1
      examples/jsm/geometries/DecalGeometry.js
  40. 2 2
      examples/jsm/geometries/LightningStrike.js
  41. 1 1
      examples/jsm/geometries/ParametricGeometries.js
  42. 1 1
      examples/jsm/geometries/RoundedBoxBufferGeometry.js
  43. 1 1
      examples/jsm/geometries/TeapotBufferGeometry.js
  44. 1 1
      examples/jsm/interactive/SelectionBox.js
  45. 1 1
      examples/jsm/interactive/SelectionHelper.js
  46. 1 1
      examples/jsm/lights/LightProbeGenerator.js
  47. 1 1
      examples/jsm/lights/RectAreaLightUniformsLib.js
  48. 3 3
      examples/jsm/lines/Line2.js
  49. 1 1
      examples/jsm/lines/LineGeometry.js
  50. 1 1
      examples/jsm/lines/LineMaterial.js
  51. 3 3
      examples/jsm/lines/LineSegments2.js
  52. 1 1
      examples/jsm/lines/LineSegmentsGeometry.js
  53. 3 3
      examples/jsm/lines/Wireframe.js
  54. 2 2
      examples/jsm/lines/WireframeGeometry2.js
  55. 1 1
      examples/jsm/loaders/3DMLoader.js
  56. 2 2
      examples/jsm/loaders/3MFLoader.js
  57. 2 2
      examples/jsm/loaders/AMFLoader.js
  58. 1 1
      examples/jsm/loaders/AssimpLoader.js
  59. 1 1
      examples/jsm/loaders/BVHLoader.js
  60. 1 1
      examples/jsm/loaders/BasisTextureLoader.js
  61. 2 2
      examples/jsm/loaders/ColladaLoader.js
  62. 1 1
      examples/jsm/loaders/DDSLoader.js
  63. 1 1
      examples/jsm/loaders/DRACOLoader.js
  64. 2 2
      examples/jsm/loaders/EXRLoader.js
  65. 3 3
      examples/jsm/loaders/FBXLoader.js
  66. 1 1
      examples/jsm/loaders/GCodeLoader.js
  67. 1 1
      examples/jsm/loaders/GLTFLoader.js
  68. 2 2
      examples/jsm/loaders/HDRCubeTextureLoader.js
  69. 3 3
      examples/jsm/loaders/KMZLoader.js
  70. 1 1
      examples/jsm/loaders/KTXLoader.js
  71. 1 1
      examples/jsm/loaders/LDrawLoader.js
  72. 2 2
      examples/jsm/loaders/LWOLoader.js
  73. 1 1
      examples/jsm/loaders/LottieLoader.js
  74. 1 1
      examples/jsm/loaders/MD2Loader.js
  75. 1 1
      examples/jsm/loaders/MDDLoader.js
  76. 3 3
      examples/jsm/loaders/MMDLoader.js
  77. 1 1
      examples/jsm/loaders/MTLLoader.js
  78. 3 3
      examples/jsm/loaders/NRRDLoader.js
  79. 2 2
      examples/jsm/loaders/NodeMaterialLoader.js
  80. 1 1
      examples/jsm/loaders/OBJLoader.js
  81. 4 4
      examples/jsm/loaders/OBJLoader2.js
  82. 6 6
      examples/jsm/loaders/OBJLoader2Parallel.js
  83. 1 1
      examples/jsm/loaders/PCDLoader.js
  84. 1 1
      examples/jsm/loaders/PDBLoader.js
  85. 1 1
      examples/jsm/loaders/PLYLoader.js
  86. 1 1
      examples/jsm/loaders/PRWMLoader.js
  87. 1 1
      examples/jsm/loaders/PVRLoader.js
  88. 1 1
      examples/jsm/loaders/RGBELoader.js
  89. 1 1
      examples/jsm/loaders/STLLoader.js
  90. 1 1
      examples/jsm/loaders/SVGLoader.js
  91. 1 1
      examples/jsm/loaders/TDSLoader.js
  92. 1 1
      examples/jsm/loaders/TGALoader.js
  93. 2 2
      examples/jsm/loaders/TTFLoader.js
  94. 14 0
      examples/jsm/loaders/TiltLoader.d.ts
  95. 1 1
      examples/jsm/loaders/TiltLoader.js
  96. 1 1
      examples/jsm/loaders/VOXLoader.js
  97. 2 2
      examples/jsm/loaders/VRMLLoader.js
  98. 2 2
      examples/jsm/loaders/VRMLoader.js
  99. 2 2
      examples/jsm/loaders/VTKLoader.js
  100. 1 1
      examples/jsm/loaders/XLoader.js

+ 15 - 8
build/three.js

@@ -13519,13 +13519,13 @@
 		function getTextureEncodingFromMap(map) {
 		function getTextureEncodingFromMap(map) {
 			var encoding;
 			var encoding;
 
 
-			if (!map) {
-				encoding = LinearEncoding;
-			} else if (map.isTexture) {
+			if (map && map.isTexture) {
 				encoding = map.encoding;
 				encoding = map.encoding;
-			} else if (map.isWebGLRenderTarget) {
+			} else if (map && map.isWebGLRenderTarget) {
 				console.warn('THREE.WebGLPrograms.getTextureEncodingFromMap: don\'t use render targets as textures. Use their .texture property instead.');
 				console.warn('THREE.WebGLPrograms.getTextureEncodingFromMap: don\'t use render targets as textures. Use their .texture property instead.');
 				encoding = map.texture.encoding;
 				encoding = map.texture.encoding;
+			} else {
+				encoding = LinearEncoding;
 			}
 			}
 
 
 			return encoding;
 			return encoding;
@@ -17822,8 +17822,13 @@
 		}; // Clearing
 		}; // Clearing
 
 
 
 
-		this.getClearColor = function () {
-			return background.getClearColor();
+		this.getClearColor = function (target) {
+			if (target === undefined) {
+				console.warn('WebGLRenderer: .getClearColor() now requires a Color as an argument');
+				target = new Color();
+			}
+
+			return target.copy(background.getClearColor());
 		};
 		};
 
 
 		this.setClearColor = function () {
 		this.setClearColor = function () {
@@ -35742,6 +35747,8 @@
 			_sizeLods = _createPlanes2._sizeLods,
 			_sizeLods = _createPlanes2._sizeLods,
 			_sigmas = _createPlanes2._sigmas;
 			_sigmas = _createPlanes2._sigmas;
 
 
+	var _clearColor = /*@__PURE__*/new Color();
+
 	var _oldTarget = null; // Golden Ratio
 	var _oldTarget = null; // Golden Ratio
 
 
 	var PHI = (1 + Math.sqrt(5)) / 2;
 	var PHI = (1 + Math.sqrt(5)) / 2;
@@ -35934,7 +35941,7 @@
 			var renderer = this._renderer;
 			var renderer = this._renderer;
 			var outputEncoding = renderer.outputEncoding;
 			var outputEncoding = renderer.outputEncoding;
 			var toneMapping = renderer.toneMapping;
 			var toneMapping = renderer.toneMapping;
-			var clearColor = renderer.getClearColor();
+			renderer.getClearColor(_clearColor);
 			var clearAlpha = renderer.getClearAlpha();
 			var clearAlpha = renderer.getClearAlpha();
 			renderer.toneMapping = NoToneMapping;
 			renderer.toneMapping = NoToneMapping;
 			renderer.outputEncoding = LinearEncoding;
 			renderer.outputEncoding = LinearEncoding;
@@ -35973,7 +35980,7 @@
 
 
 			renderer.toneMapping = toneMapping;
 			renderer.toneMapping = toneMapping;
 			renderer.outputEncoding = outputEncoding;
 			renderer.outputEncoding = outputEncoding;
-			renderer.setClearColor(clearColor, clearAlpha);
+			renderer.setClearColor(_clearColor, clearAlpha);
 		};
 		};
 
 
 		_proto._textureToCubeUV = function _textureToCubeUV(texture, cubeUVRenderTarget) {
 		_proto._textureToCubeUV = function _textureToCubeUV(texture, cubeUVRenderTarget) {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
build/three.min.js


+ 19 - 10
build/three.module.js

@@ -17623,19 +17623,19 @@ function WebGLPrograms( renderer, cubemaps, extensions, capabilities, bindingSta
 
 
 		let encoding;
 		let encoding;
 
 
-		if ( ! map ) {
-
-			encoding = LinearEncoding;
-
-		} else if ( map.isTexture ) {
+		if ( map && map.isTexture ) {
 
 
 			encoding = map.encoding;
 			encoding = map.encoding;
 
 
-		} else if ( map.isWebGLRenderTarget ) {
+		} else if ( map && map.isWebGLRenderTarget ) {
 
 
 			console.warn( 'THREE.WebGLPrograms.getTextureEncodingFromMap: don\'t use render targets as textures. Use their .texture property instead.' );
 			console.warn( 'THREE.WebGLPrograms.getTextureEncodingFromMap: don\'t use render targets as textures. Use their .texture property instead.' );
 			encoding = map.texture.encoding;
 			encoding = map.texture.encoding;
 
 
+		} else {
+
+			encoding = LinearEncoding;
+
 		}
 		}
 
 
 		return encoding;
 		return encoding;
@@ -23724,9 +23724,17 @@ function WebGLRenderer( parameters ) {
 
 
 	// Clearing
 	// Clearing
 
 
-	this.getClearColor = function () {
+	this.getClearColor = function ( target ) {
+
+		if ( target === undefined ) {
+
+			console.warn( 'WebGLRenderer: .getClearColor() now requires a Color as an argument' );
+
+			target = new Color();
+
+		}
 
 
-		return background.getClearColor();
+		return target.copy( background.getClearColor() );
 
 
 	};
 	};
 
 
@@ -48296,6 +48304,7 @@ const ENCODINGS = {
 
 
 const _flatCamera = /*@__PURE__*/ new OrthographicCamera();
 const _flatCamera = /*@__PURE__*/ new OrthographicCamera();
 const { _lodPlanes, _sizeLods, _sigmas } = /*@__PURE__*/ _createPlanes();
 const { _lodPlanes, _sizeLods, _sigmas } = /*@__PURE__*/ _createPlanes();
+const _clearColor = /*@__PURE__*/ new Color();
 let _oldTarget = null;
 let _oldTarget = null;
 
 
 // Golden Ratio
 // Golden Ratio
@@ -48501,7 +48510,7 @@ class PMREMGenerator {
 
 
 		const outputEncoding = renderer.outputEncoding;
 		const outputEncoding = renderer.outputEncoding;
 		const toneMapping = renderer.toneMapping;
 		const toneMapping = renderer.toneMapping;
-		const clearColor = renderer.getClearColor();
+		renderer.getClearColor( _clearColor );
 		const clearAlpha = renderer.getClearAlpha();
 		const clearAlpha = renderer.getClearAlpha();
 
 
 		renderer.toneMapping = NoToneMapping;
 		renderer.toneMapping = NoToneMapping;
@@ -48550,7 +48559,7 @@ class PMREMGenerator {
 
 
 		renderer.toneMapping = toneMapping;
 		renderer.toneMapping = toneMapping;
 		renderer.outputEncoding = outputEncoding;
 		renderer.outputEncoding = outputEncoding;
-		renderer.setClearColor( clearColor, clearAlpha );
+		renderer.setClearColor( _clearColor, clearAlpha );
 
 
 	}
 	}
 
 

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

@@ -1693,12 +1693,15 @@ THREE.GLTFExporter.prototype = {
 
 
 			var joints = [];
 			var joints = [];
 			var inverseBindMatrices = new Float32Array( skeleton.bones.length * 16 );
 			var inverseBindMatrices = new Float32Array( skeleton.bones.length * 16 );
+			var temporaryBoneInverse = new THREE.Matrix4();
 
 
 			for ( var i = 0; i < skeleton.bones.length; ++ i ) {
 			for ( var i = 0; i < skeleton.bones.length; ++ i ) {
 
 
 				joints.push( nodeMap.get( skeleton.bones[ i ] ) );
 				joints.push( nodeMap.get( skeleton.bones[ i ] ) );
 
 
-				skeleton.boneInverses[ i ].toArray( inverseBindMatrices, i * 16 );
+				temporaryBoneInverse.copy( skeleton.boneInverses[ i ] );
+				
+				temporaryBoneInverse.multiply( object.bindMatrix ).toArray( inverseBindMatrices, i * 16 );
 
 
 			}
 			}
 
 

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

@@ -5,7 +5,7 @@ import {
 	NumberKeyframeTrack,
 	NumberKeyframeTrack,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var AnimationClipCreator = function () {};
 var AnimationClipCreator = function () {};
 
 

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

@@ -11,7 +11,7 @@ import {
 	Quaternion,
 	Quaternion,
 	SphereBufferGeometry,
 	SphereBufferGeometry,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * CCD Algorithm
  * CCD Algorithm

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

@@ -3,9 +3,9 @@ import {
 	Object3D,
 	Object3D,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
-import { CCDIKSolver } from "../animation/CCDIKSolver.js";
-import { MMDPhysics } from "../animation/MMDPhysics.js";
+} from '../../../build/three.module.js';
+import { CCDIKSolver } from '../animation/CCDIKSolver.js';
+import { MMDPhysics } from '../animation/MMDPhysics.js';
 
 
 /**
 /**
  * MMDAnimationHelper handles animation of MMD assets loaded by MMDLoader
  * MMDAnimationHelper handles animation of MMD assets loaded by MMDLoader

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

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

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

@@ -9,9 +9,9 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	UniformsUtils,
 	UniformsUtils,
 	WebGLRenderTarget
 	WebGLRenderTarget
-} from "../../../build/three.module.js";
-import { BokehShader } from "../shaders/BokehShader2.js";
-import { BokehDepthShader } from "../shaders/BokehShader2.js";
+} from '../../../build/three.module.js';
+import { BokehShader } from '../shaders/BokehShader2.js';
+import { BokehDepthShader } from '../shaders/BokehShader2.js';
 
 
 var CinematicCamera = function ( fov, aspect, near, far ) {
 var CinematicCamera = function ( fov, aspect, near, far ) {
 
 

+ 1 - 1
examples/jsm/controls/DeviceOrientationControls.d.ts

@@ -1,4 +1,4 @@
-import { Camera, EventDispatcher } from "../../../src/Three";
+import { Camera, EventDispatcher } from '../../../src/Three';
 
 
 export class DeviceOrientationControls extends EventDispatcher {
 export class DeviceOrientationControls extends EventDispatcher {
 
 

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

@@ -4,7 +4,7 @@ import {
 	MathUtils,
 	MathUtils,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * W3C Device Orientation control (http://w3c.github.io/deviceorientation/spec-source-orientation.html)
  * W3C Device Orientation control (http://w3c.github.io/deviceorientation/spec-source-orientation.html)

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

@@ -5,7 +5,7 @@ import {
 	Raycaster,
 	Raycaster,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var DragControls = function ( _objects, _camera, _domElement ) {
 var DragControls = function ( _objects, _camera, _domElement ) {
 
 

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

@@ -2,7 +2,7 @@ import {
 	MathUtils,
 	MathUtils,
 	Spherical,
 	Spherical,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var FirstPersonControls = function ( object, domElement ) {
 var FirstPersonControls = function ( object, domElement ) {
 
 

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

@@ -2,7 +2,7 @@ import {
 	EventDispatcher,
 	EventDispatcher,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var FlyControls = function ( object, domElement ) {
 var FlyControls = function ( object, domElement ) {
 
 

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

@@ -6,7 +6,7 @@ import {
 	TOUCH,
 	TOUCH,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 // 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 '../../../build/three.module.js';
 
 
 var PointerLockControls = function ( camera, domElement ) {
 var PointerLockControls = function ( camera, domElement ) {
 
 

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

@@ -4,7 +4,7 @@ import {
 	Quaternion,
 	Quaternion,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var TrackballControls = function ( object, domElement ) {
 var TrackballControls = function ( object, domElement ) {
 
 

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

@@ -19,7 +19,7 @@ import {
 	SphereBufferGeometry,
 	SphereBufferGeometry,
 	TorusBufferGeometry,
 	TorusBufferGeometry,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var TransformControls = function ( camera, domElement ) {
 var TransformControls = function ( camera, domElement ) {
 
 

+ 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 '../../../../build/three.module.js';
 
 
 var CameraControls = function ( object, domElement ) {
 var CameraControls = function ( object, domElement ) {
 
 

+ 1 - 1
examples/jsm/csm/CSM.d.ts

@@ -35,4 +35,4 @@ export class CSM {
 
 
 }
 }
 
 
-import Frustum from "./Frustum.js";
+import Frustum from './Frustum.js';

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

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

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

@@ -2,8 +2,8 @@ import {
 	Curve,
 	Curve,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from "../../../build/three.module.js";
-import { NURBSUtils } from "../curves/NURBSUtils.js";
+} from '../../../build/three.module.js';
+import { NURBSUtils } from '../curves/NURBSUtils.js';
 
 
 /**
 /**
  * NURBS curve object
  * NURBS curve object

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

@@ -1,7 +1,7 @@
 import {
 import {
 	Vector4
 	Vector4
-} from "../../../build/three.module.js";
-import { NURBSUtils } from "../curves/NURBSUtils.js";
+} from '../../../build/three.module.js';
+import { NURBSUtils } from '../curves/NURBSUtils.js';
 
 
 /**
 /**
  * NURBS surface object
  * NURBS surface object

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

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

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

@@ -10,7 +10,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	StereoCamera,
 	StereoCamera,
 	WebGLRenderTarget
 	WebGLRenderTarget
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var AnaglyphEffect = function ( renderer, width, height ) {
 var AnaglyphEffect = function ( renderer, width, height ) {
 
 

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

@@ -4,7 +4,7 @@ import {
 	ShaderMaterial,
 	ShaderMaterial,
 	UniformsLib,
 	UniformsLib,
 	UniformsUtils
 	UniformsUtils
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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 '../../../build/three.module.js';
 
 
 var ParallaxBarrierEffect = function ( renderer ) {
 var ParallaxBarrierEffect = function ( renderer ) {
 
 

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

@@ -2,7 +2,7 @@ import {
 	PerspectiveCamera,
 	PerspectiveCamera,
 	Quaternion,
 	Quaternion,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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 '../../../build/three.module.js';
 
 
 var StereoEffect = function ( renderer ) {
 var StereoEffect = function ( renderer ) {
 
 

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

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

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

@@ -1,6 +1,6 @@
 import {
 import {
 	BufferGeometry
 	BufferGeometry
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * Export draco compressed files from threejs geometry objects.
  * Export draco compressed files from threejs geometry objects.

+ 7 - 3
examples/jsm/exporters/GLTFExporter.js

@@ -9,6 +9,7 @@ import {
 	LinearMipmapLinearFilter,
 	LinearMipmapLinearFilter,
 	LinearMipmapNearestFilter,
 	LinearMipmapNearestFilter,
 	MathUtils,
 	MathUtils,
+	Matrix4,
 	MirroredRepeatWrapping,
 	MirroredRepeatWrapping,
 	NearestFilter,
 	NearestFilter,
 	NearestMipmapLinearFilter,
 	NearestMipmapLinearFilter,
@@ -19,7 +20,7 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	Scene,
 	Scene,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 // Constants
 // Constants
@@ -178,7 +179,7 @@ GLTFExporter.prototype = {
 		/**
 		/**
 		 * Is identity matrix
 		 * Is identity matrix
 		 *
 		 *
-		 * @param {THREE.Matrix4} matrix
+		 * @param {Matrix4} matrix
 		 * @returns {Boolean} Returns true, if parameter is identity matrix
 		 * @returns {Boolean} Returns true, if parameter is identity matrix
 		 */
 		 */
 		function isIdentityMatrix( matrix ) {
 		function isIdentityMatrix( matrix ) {
@@ -1716,12 +1717,15 @@ GLTFExporter.prototype = {
 
 
 			var joints = [];
 			var joints = [];
 			var inverseBindMatrices = new Float32Array( skeleton.bones.length * 16 );
 			var inverseBindMatrices = new Float32Array( skeleton.bones.length * 16 );
+			var temporaryBoneInverse = new Matrix4();
 
 
 			for ( var i = 0; i < skeleton.bones.length; ++ i ) {
 			for ( var i = 0; i < skeleton.bones.length; ++ i ) {
 
 
 				joints.push( nodeMap.get( skeleton.bones[ i ] ) );
 				joints.push( nodeMap.get( skeleton.bones[ i ] ) );
 
 
-				skeleton.boneInverses[ i ].toArray( inverseBindMatrices, i * 16 );
+				temporaryBoneInverse.copy( skeleton.boneInverses[ i ] );
+				
+				temporaryBoneInverse.multiply( object.bindMatrix ).toArray( inverseBindMatrices, i * 16 );
 
 
 			}
 			}
 
 

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

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

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

@@ -8,7 +8,7 @@ import {
 	Points,
 	Points,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var OBJExporter = function () {};
 var OBJExporter = function () {};
 
 

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

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

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

@@ -1,7 +1,7 @@
 import {
 import {
 	BufferGeometry,
 	BufferGeometry,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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 '../../../build/three.module.js';
 
 
 var BoxLineGeometry = function ( width, height, depth, widthSegments, heightSegments, depthSegments ) {
 var BoxLineGeometry = function ( width, height, depth, widthSegments, heightSegments, depthSegments ) {
 
 

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

@@ -2,8 +2,8 @@ import {
 	BufferGeometry,
 	BufferGeometry,
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Geometry
 	Geometry
-} from "../../../build/three.module.js";
-import { ConvexHull } from "../math/ConvexHull.js";
+} from '../../../build/three.module.js';
+import { ConvexHull } from '../math/ConvexHull.js';
 
 
 // ConvexGeometry
 // ConvexGeometry
 
 

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

@@ -3,7 +3,7 @@ import {
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Matrix4,
 	Matrix4,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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.

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

@@ -5,8 +5,8 @@ import {
 	MathUtils,
 	MathUtils,
 	Uint32BufferAttribute,
 	Uint32BufferAttribute,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
-import { SimplexNoise } from "../math/SimplexNoise.js";
+} from '../../../build/three.module.js';
+import { SimplexNoise } from '../math/SimplexNoise.js';
 
 
 /**
 /**
  * @fileoverview LightningStrike object for creating lightning strikes and voltaic arcs.
  * @fileoverview LightningStrike object for creating lightning strikes and voltaic arcs.

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

@@ -3,7 +3,7 @@ import {
 	Geometry,
 	Geometry,
 	ParametricGeometry,
 	ParametricGeometry,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * Experimenting of primitive geometry creation using Surface Parametric equations
  * Experimenting of primitive geometry creation using Surface Parametric equations

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

@@ -1,7 +1,7 @@
 import {
 import {
 	BoxBufferGeometry,
 	BoxBufferGeometry,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 const tempNormal = new Vector3();
 const tempNormal = new Vector3();
 function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLength ) {
 function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLength ) {

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

@@ -4,7 +4,7 @@ import {
 	Matrix4,
 	Matrix4,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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/interactive/SelectionBox.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Frustum,
 	Frustum,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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 '../../../build/three.module.js';
 
 
 var SelectionHelper = ( function () {
 var SelectionHelper = ( function () {
 
 

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

@@ -5,7 +5,7 @@ import {
 	SphericalHarmonics3,
 	SphericalHarmonics3,
 	Vector3,
 	Vector3,
 	sRGBEncoding
 	sRGBEncoding
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var LightProbeGenerator = {
 var 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 '../../../build/three.module.js';
 
 
 /**
 /**
  * Uniforms library for RectAreaLight shared webgl shaders
  * Uniforms library for RectAreaLight shared webgl shaders

+ 3 - 3
examples/jsm/lines/Line2.js

@@ -1,6 +1,6 @@
-import { LineSegments2 } from "../lines/LineSegments2.js";
-import { LineGeometry } from "../lines/LineGeometry.js";
-import { LineMaterial } from "../lines/LineMaterial.js";
+import { LineSegments2 } from '../lines/LineSegments2.js';
+import { LineGeometry } from '../lines/LineGeometry.js';
+import { LineMaterial } from '../lines/LineMaterial.js';
 
 
 var Line2 = function ( geometry, material ) {
 var Line2 = function ( geometry, material ) {
 
 

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

@@ -1,4 +1,4 @@
-import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
+import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 
 
 var LineGeometry = function () {
 var LineGeometry = function () {
 
 

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

@@ -4,7 +4,7 @@ import {
 	UniformsLib,
 	UniformsLib,
 	UniformsUtils,
 	UniformsUtils,
 	Vector2
 	Vector2
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * parameters = {
  * parameters = {

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

@@ -7,9 +7,9 @@ import {
 	Mesh,
 	Mesh,
 	Vector3,
 	Vector3,
 	Vector4
 	Vector4
-} from "../../../build/three.module.js";
-import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
-import { LineMaterial } from "../lines/LineMaterial.js";
+} from '../../../build/three.module.js';
+import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
+import { LineMaterial } from '../lines/LineMaterial.js';
 
 
 var LineSegments2 = function ( geometry, material ) {
 var LineSegments2 = function ( geometry, material ) {
 
 

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

@@ -7,7 +7,7 @@ import {
 	Sphere,
 	Sphere,
 	Vector3,
 	Vector3,
 	WireframeGeometry
 	WireframeGeometry
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var LineSegmentsGeometry = function () {
 var LineSegmentsGeometry = function () {
 
 

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

@@ -3,9 +3,9 @@ import {
 	InterleavedBufferAttribute,
 	InterleavedBufferAttribute,
 	Mesh,
 	Mesh,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
-import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
-import { LineMaterial } from "../lines/LineMaterial.js";
+} from '../../../build/three.module.js';
+import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
+import { LineMaterial } from '../lines/LineMaterial.js';
 
 
 var Wireframe = function ( geometry, material ) {
 var Wireframe = function ( geometry, material ) {
 
 

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

@@ -1,7 +1,7 @@
 import {
 import {
 	WireframeGeometry
 	WireframeGeometry
-} from "../../../build/three.module.js";
-import { LineSegmentsGeometry } from "../lines/LineSegmentsGeometry.js";
+} from '../../../build/three.module.js';
+import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
 
 
 var WireframeGeometry2 = function ( geometry ) {
 var WireframeGeometry2 = function ( geometry ) {
 
 

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

@@ -22,7 +22,7 @@ import {
 	LinearFilter,
 	LinearFilter,
 	ClampToEdgeWrapping,
 	ClampToEdgeWrapping,
 	TextureLoader
 	TextureLoader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var Rhino3dmLoader = function ( manager ) {
 var Rhino3dmLoader = function ( manager ) {
 
 

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

@@ -19,8 +19,8 @@ import {
 	RepeatWrapping,
 	RepeatWrapping,
 	TextureLoader,
 	TextureLoader,
 	sRGBEncoding
 	sRGBEncoding
-} from "../../../build/three.module.js";
-import { JSZip } from "../libs/jszip.module.min.js";
+} from '../../../build/three.module.js';
+import { JSZip } from '../libs/jszip.module.min.js';
 
 
 /**
 /**
  *
  *

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

@@ -8,8 +8,8 @@ import {
 	LoaderUtils,
 	LoaderUtils,
 	Mesh,
 	Mesh,
 	MeshPhongMaterial
 	MeshPhongMaterial
-} from "../../../build/three.module.js";
-import { JSZip } from "../libs/jszip.module.min.js";
+} from '../../../build/three.module.js';
+import { JSZip } from '../libs/jszip.module.min.js';
 
 
 /**
 /**
  * Description: Early release of an AMF Loader following the pattern of the
  * Description: Early release of an AMF Loader following the pattern of the

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

@@ -16,7 +16,7 @@ import {
 	SkinnedMesh,
 	SkinnedMesh,
 	TextureLoader,
 	TextureLoader,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var AssimpLoader = function ( manager ) {
 var AssimpLoader = function ( manager ) {
 
 

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

@@ -8,7 +8,7 @@ import {
 	Skeleton,
 	Skeleton,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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

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

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

@@ -35,8 +35,8 @@ import {
 	TextureLoader,
 	TextureLoader,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from "../../../build/three.module.js";
-import { TGALoader } from "../loaders/TGALoader.js";
+} from '../../../build/three.module.js';
+import { TGALoader } from '../loaders/TGALoader.js';
 
 
 var ColladaLoader = function ( manager ) {
 var ColladaLoader = function ( manager ) {
 
 

+ 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 '../../../build/three.module.js';
 
 
 var DDSLoader = function ( manager ) {
 var DDSLoader = function ( manager ) {
 
 

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

@@ -3,7 +3,7 @@ import {
 	BufferGeometry,
 	BufferGeometry,
 	FileLoader,
 	FileLoader,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var DRACOLoader = function ( manager ) {
 var DRACOLoader = function ( manager ) {
 
 

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

@@ -11,8 +11,8 @@ import {
 	RGBEFormat,
 	RGBEFormat,
 	RGBFormat,
 	RGBFormat,
 	UnsignedByteType
 	UnsignedByteType
-} from "../../../build/three.module.js";
-import { Inflate } from "../libs/inflate.module.min.js";
+} from '../../../build/three.module.js';
+import { Inflate } from '../libs/inflate.module.min.js';
 
 
 /**
 /**
  * OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression.
  * OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression.

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

@@ -41,9 +41,9 @@ import {
 	Vector4,
 	Vector4,
 	VectorKeyframeTrack,
 	VectorKeyframeTrack,
 	sRGBEncoding
 	sRGBEncoding
-} from "../../../build/three.module.js";
-import { Inflate } from "../libs/inflate.module.min.js";
-import { NURBSCurve } from "../curves/NURBSCurve.js";
+} from '../../../build/three.module.js';
+import { Inflate } from '../libs/inflate.module.min.js';
+import { NURBSCurve } from '../curves/NURBSCurve.js';
 
 
 /**
 /**
  * Loader loads FBX file and generates Group representing FBX scene.
  * Loader loads FBX file and generates Group representing FBX scene.

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

@@ -7,7 +7,7 @@ import {
 	LineBasicMaterial,
 	LineBasicMaterial,
 	LineSegments,
 	LineSegments,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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 '../../../build/three.module.js';
 
 
 var GLTFLoader = ( function () {
 var GLTFLoader = ( function () {
 
 

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

@@ -12,8 +12,8 @@ import {
 	RGBEEncoding,
 	RGBEEncoding,
 	RGBFormat,
 	RGBFormat,
 	UnsignedByteType
 	UnsignedByteType
-} from "../../../build/three.module.js";
-import { RGBELoader } from "../loaders/RGBELoader.js";
+} from '../../../build/three.module.js';
+import { RGBELoader } from '../loaders/RGBELoader.js';
 
 
 var HDRCubeTextureLoader = function ( manager ) {
 var HDRCubeTextureLoader = function ( manager ) {
 
 

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

@@ -3,9 +3,9 @@ import {
 	Group,
 	Group,
 	Loader,
 	Loader,
 	LoadingManager
 	LoadingManager
-} from "../../../build/three.module.js";
-import { ColladaLoader } from "../loaders/ColladaLoader.js";
-import { JSZip } from "../libs/jszip.module.min.js";
+} from '../../../build/three.module.js';
+import { ColladaLoader } from '../loaders/ColladaLoader.js';
+import { JSZip } from '../libs/jszip.module.min.js';
 
 
 var KMZLoader = function ( manager ) {
 var KMZLoader = function ( manager ) {
 
 

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

@@ -1,6 +1,6 @@
 import {
 import {
 	CompressedTextureLoader
 	CompressedTextureLoader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * 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

@@ -14,7 +14,7 @@ import {
 	MeshStandardMaterial,
 	MeshStandardMaterial,
 	ShaderMaterial,
 	ShaderMaterial,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var LDrawLoader = ( function () {
 var LDrawLoader = ( function () {
 
 

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

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

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

@@ -3,7 +3,7 @@ import {
 	Loader,
 	Loader,
 	CanvasTexture,
 	CanvasTexture,
 	NearestFilter
 	NearestFilter
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 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 '../../../build/three.module.js';
 
 
 var MD2Loader = function ( manager ) {
 var MD2Loader = function ( manager ) {
 
 

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

@@ -16,7 +16,7 @@ import {
 	FileLoader,
 	FileLoader,
 	Loader,
 	Loader,
 	NumberKeyframeTrack
 	NumberKeyframeTrack
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var MDDLoader = function ( manager ) {
 var MDDLoader = function ( manager ) {
 
 

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

@@ -29,9 +29,9 @@ import {
 	Uint16BufferAttribute,
 	Uint16BufferAttribute,
 	Vector3,
 	Vector3,
 	VectorKeyframeTrack
 	VectorKeyframeTrack
-} from "../../../build/three.module.js";
-import { TGALoader } from "../loaders/TGALoader.js";
-import { MMDParser } from "../libs/mmdparser.module.js";
+} from '../../../build/three.module.js';
+import { TGALoader } from '../loaders/TGALoader.js';
+import { MMDParser } from '../libs/mmdparser.module.js';
 
 
 /**
 /**
  * Dependencies
  * Dependencies

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

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

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

@@ -3,9 +3,9 @@ import {
 	Loader,
 	Loader,
 	Matrix4,
 	Matrix4,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
-import { Zlib } from "../libs/gunzip.module.min.js";
-import { Volume } from "../misc/Volume.js";
+} from '../../../build/three.module.js';
+import { Zlib } from '../libs/gunzip.module.min.js';
+import { Volume } from '../misc/Volume.js';
 
 
 var NRRDLoader = function ( manager ) {
 var NRRDLoader = function ( manager ) {
 
 

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

@@ -1,9 +1,9 @@
 import {
 import {
 	DefaultLoadingManager,
 	DefaultLoadingManager,
 	FileLoader
 	FileLoader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
-import * as Nodes from "../nodes/Nodes.js";
+import * as Nodes from '../nodes/Nodes.js';
 
 
 var NodeMaterialLoader = function ( manager, library ) {
 var NodeMaterialLoader = function ( manager, library ) {
 
 

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

@@ -12,7 +12,7 @@ import {
 	Points,
 	Points,
 	PointsMaterial,
 	PointsMaterial,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var OBJLoader = ( function () {
 var OBJLoader = ( function () {
 
 

+ 4 - 4
examples/jsm/loaders/OBJLoader2.js

@@ -6,11 +6,11 @@ import {
 	FileLoader,
 	FileLoader,
 	Object3D,
 	Object3D,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
-import { OBJLoader2Parser } from "./obj2/OBJLoader2Parser.js";
-import { MeshReceiver } from "./obj2/shared/MeshReceiver.js";
-import { MaterialHandler } from "./obj2/shared/MaterialHandler.js";
+import { OBJLoader2Parser } from './obj2/OBJLoader2Parser.js';
+import { MeshReceiver } from './obj2/shared/MeshReceiver.js';
+import { MaterialHandler } from './obj2/shared/MaterialHandler.js';
 
 
 /**
 /**
  * Creates a new OBJLoader2. Use it to load OBJ data from files or to parse OBJ data from arraybuffer or text.
  * Creates a new OBJLoader2. Use it to load OBJ data from files or to parse OBJ data from arraybuffer or text.

+ 6 - 6
examples/jsm/loaders/OBJLoader2Parallel.js

@@ -5,21 +5,21 @@
 // Imports only related to wrapper
 // Imports only related to wrapper
 import {
 import {
 	Object3D
 	Object3D
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 import {
 import {
 	CodeBuilderInstructions,
 	CodeBuilderInstructions,
 	WorkerExecutionSupport
 	WorkerExecutionSupport
-} from "./obj2/worker/main/WorkerExecutionSupport.js";
-import { CodeSerializer } from "./obj2/utils/CodeSerializer.js";
-import { OBJLoader2 } from "./OBJLoader2.js";
+} from './obj2/worker/main/WorkerExecutionSupport.js';
+import { CodeSerializer } from './obj2/utils/CodeSerializer.js';
+import { OBJLoader2 } from './OBJLoader2.js';
 
 
 // Imports only related to worker (when standard workers (modules aren't supported) are used)
 // Imports only related to worker (when standard workers (modules aren't supported) are used)
-import { OBJLoader2Parser } from "./obj2/OBJLoader2Parser.js";
+import { OBJLoader2Parser } from './obj2/OBJLoader2Parser.js';
 import {
 import {
 	WorkerRunner,
 	WorkerRunner,
 	DefaultWorkerPayloadHandler,
 	DefaultWorkerPayloadHandler,
 	ObjectManipulator
 	ObjectManipulator
-} from "./obj2/worker/parallel/WorkerRunner.js";
+} from './obj2/worker/parallel/WorkerRunner.js';
 
 
 
 
 /**
 /**

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

@@ -6,7 +6,7 @@ import {
 	LoaderUtils,
 	LoaderUtils,
 	Points,
 	Points,
 	PointsMaterial
 	PointsMaterial
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var PCDLoader = function ( manager ) {
 var PCDLoader = function ( manager ) {
 
 

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

@@ -3,7 +3,7 @@ import {
 	FileLoader,
 	FileLoader,
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var PDBLoader = function ( manager ) {
 var PDBLoader = function ( manager ) {
 
 

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

@@ -4,7 +4,7 @@ import {
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Loader,
 	Loader,
 	LoaderUtils
 	LoaderUtils
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * Description: A THREE loader for PLY ASCII files (known as the Polygon
  * Description: A THREE loader for PLY ASCII files (known as the Polygon

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

@@ -3,7 +3,7 @@ import {
 	BufferGeometry,
 	BufferGeometry,
 	FileLoader,
 	FileLoader,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * See https://github.com/kchapelier/PRWM for more informations about this file format
  * See https://github.com/kchapelier/PRWM for more informations about this file format

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

@@ -4,7 +4,7 @@ import {
 	RGBA_PVRTC_4BPPV1_Format,
 	RGBA_PVRTC_4BPPV1_Format,
 	RGB_PVRTC_2BPPV1_Format,
 	RGB_PVRTC_2BPPV1_Format,
 	RGB_PVRTC_4BPPV1_Format
 	RGB_PVRTC_4BPPV1_Format
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /*
 /*
  *	 PVR v2 (legacy) parser
  *	 PVR v2 (legacy) parser

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

@@ -10,7 +10,7 @@ import {
 	RGBEFormat,
 	RGBEFormat,
 	RGBFormat,
 	RGBFormat,
 	UnsignedByteType
 	UnsignedByteType
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 // https://github.com/mrdoob/three.js/issues/5552
 // https://github.com/mrdoob/three.js/issues/5552
 // http://en.wikipedia.org/wiki/RGBE_image_format
 // http://en.wikipedia.org/wiki/RGBE_image_format

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

@@ -6,7 +6,7 @@ import {
 	Loader,
 	Loader,
 	LoaderUtils,
 	LoaderUtils,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.
  * Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.

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

@@ -8,7 +8,7 @@ import {
 	ShapePath,
 	ShapePath,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var SVGLoader = function ( manager ) {
 var SVGLoader = function ( manager ) {
 
 

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

@@ -12,7 +12,7 @@ import {
 	Mesh,
 	Mesh,
 	MeshPhongMaterial,
 	MeshPhongMaterial,
 	TextureLoader
 	TextureLoader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 /**
 /**
  * Autodesk 3DS three.js file loader, based on lib3ds.
  * Autodesk 3DS three.js file loader, based on lib3ds.

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

@@ -2,7 +2,7 @@ import {
 	FileLoader,
 	FileLoader,
 	Loader,
 	Loader,
 	Texture
 	Texture
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var TGALoader = function ( manager ) {
 var TGALoader = function ( manager ) {
 
 

+ 2 - 2
examples/jsm/loaders/TTFLoader.js

@@ -1,8 +1,8 @@
 import {
 import {
 	FileLoader,
 	FileLoader,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
-import { opentype } from "../libs/opentype.module.min.js";
+} from '../../../build/three.module.js';
+import { opentype } from '../libs/opentype.module.min.js';
 
 
 /**
 /**
  * Requires opentype.js to be included in the project.
  * Requires opentype.js to be included in the project.

+ 14 - 0
examples/jsm/loaders/TiltLoader.d.ts

@@ -0,0 +1,14 @@
+import {
+	Loader,
+	LoadingManager,
+	Group
+} from '../../../src/Three';
+
+export class TiltLoader extends Loader {
+
+	constructor( manager?: LoadingManager );
+
+	load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
+	parse( data: ArrayBuffer ): Group;
+
+}

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

@@ -172,7 +172,7 @@ class StrokeGeometry extends BufferGeometry {
 
 
 		size = size / 2;
 		size = size / 2;
 
 
-		for ( let i = 3, j = 4; i <= positions.length; i += 3, j += 4 ) {
+		for ( let i = 0, j = 0; i < positions.length; i += 3, j += 4 ) {
 
 
 			position.fromArray( positions, i );
 			position.fromArray( positions, i );
 			quaternion.fromArray( quaternions, j );
 			quaternion.fromArray( quaternions, j );

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

@@ -1,7 +1,7 @@
 import {
 import {
 	FileLoader,
 	FileLoader,
 	Loader
 	Loader
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 function VOXLoader( manager ) {
 function VOXLoader( manager ) {
 
 

+ 2 - 2
examples/jsm/loaders/VRMLLoader.js

@@ -33,8 +33,8 @@ import {
 	TextureLoader,
 	TextureLoader,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
-import { chevrotain } from "../libs/chevrotain.module.min.js";
+} from '../../../build/three.module.js';
+import { chevrotain } from '../libs/chevrotain.module.min.js';
 
 
 var VRMLLoader = ( function () {
 var VRMLLoader = ( function () {
 
 

+ 2 - 2
examples/jsm/loaders/VRMLoader.js

@@ -1,7 +1,7 @@
 import {
 import {
 	Loader
 	Loader
-} from "../../../build/three.module.js";
-import { GLTFLoader } from "../loaders/GLTFLoader.js";
+} from '../../../build/three.module.js';
+import { GLTFLoader } from '../loaders/GLTFLoader.js';
 
 
 // VRM Specification: https://dwango.github.io/vrm/vrm_spec/
 // VRM Specification: https://dwango.github.io/vrm/vrm_spec/
 //
 //

+ 2 - 2
examples/jsm/loaders/VTKLoader.js

@@ -5,8 +5,8 @@ import {
 	Float32BufferAttribute,
 	Float32BufferAttribute,
 	Loader,
 	Loader,
 	LoaderUtils
 	LoaderUtils
-} from "../../../build/three.module.js";
-import { Inflate } from "../libs/inflate.module.min.js";
+} from '../../../build/three.module.js';
+import { Inflate } from '../libs/inflate.module.min.js';
 
 
 var VTKLoader = function ( manager ) {
 var VTKLoader = function ( manager ) {
 
 

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

@@ -18,7 +18,7 @@ import {
 	Uint16BufferAttribute,
 	Uint16BufferAttribute,
 	Vector2,
 	Vector2,
 	Vector3
 	Vector3
-} from "../../../build/three.module.js";
+} from '../../../build/three.module.js';
 
 
 var XLoader = ( function () {
 var XLoader = ( function () {
 
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است