@damienmortini/three 0.1.193 → 0.1.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copyExamples.js +6 -6
- package/ecs/THREEView.js +7 -7
- package/examples/loaders/BasisTextureLoader.js +659 -788
- package/examples/loaders/DRACOLoader.js +451 -565
- package/examples/loaders/GLTFLoader.js +3361 -4288
- package/examples/loaders/KTX2Loader.js +675 -790
- package/examples/objects/Lensflare.js +353 -376
- package/examples/utils/BufferGeometryUtils.js +1086 -1345
- package/examples/utils/WorkerPool.js +73 -101
- package/gpgpu/THREEGPGPUSystem.js +55 -55
- package/index.js +1 -1
- package/loader/THREELoader.js +72 -67
- package/loader/meshoptimizerdecoder/THREE.EXT_meshopt_compression.js +23 -22
- package/loader/meshoptimizerdecoder/meshopt_decoder.js +53 -50
- package/material/THREEBaseMaterial.js +3 -3
- package/material/THREEPBRMaterial.js +15 -10
- package/material/THREEShaderMaterial.js +33 -32
- package/object/THREELine.js +36 -36
- package/object/THREEMotionVectorObject.js +74 -71
- package/object/THREERibbon.js +16 -17
- package/object/THREESky.js +59 -58
- package/object/THREESprite.js +42 -43
- package/object/THREESpriteAnimation.js +42 -42
- package/object/THREEText.js +106 -104
- package/package.json +4 -4
- package/renderer/THREERenderer.js +64 -60
- package/renderer/THREEStereoRenderer.js +35 -32
- package/renderer/WebGLRenderTarget2D.js +15 -15
- package/shader/THREEBaseShader.js +1 -1
- package/types/index.d.ts +1 -1
- package/types/renderer/WebGLRenderTarget2D.d.ts +22 -22
package/copyExamples.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const fs = require('fs-extra')
|
|
1
|
+
const fs = require('fs-extra');
|
|
2
2
|
|
|
3
3
|
const files = new Map([
|
|
4
4
|
[require.resolve('three/examples/jsm/loaders/BasisTextureLoader.js'), './examples/loaders/BasisTextureLoader.js'],
|
|
@@ -8,10 +8,10 @@ const files = new Map([
|
|
|
8
8
|
[require.resolve('three/examples/jsm/utils/WorkerPool.js'), './examples/utils/WorkerPool.js'],
|
|
9
9
|
[require.resolve('three/examples/jsm/objects/Lensflare.js'), './examples/objects/Lensflare.js'],
|
|
10
10
|
[require.resolve('three/examples/jsm/utils/BufferGeometryUtils.js'), './examples/utils/BufferGeometryUtils.js'],
|
|
11
|
-
])
|
|
11
|
+
]);
|
|
12
12
|
for (const [source, destination] of files) {
|
|
13
|
-
fs.copySync(source, destination)
|
|
14
|
-
const data = fs.readFileSync(destination, 'utf-8')
|
|
15
|
-
const newValue = data.replace('from \'three\'', 'from \'../../../../three/src/Three.js\'')
|
|
16
|
-
fs.writeFileSync(destination, newValue, 'utf-8')
|
|
13
|
+
fs.copySync(source, destination);
|
|
14
|
+
const data = fs.readFileSync(destination, 'utf-8');
|
|
15
|
+
const newValue = data.replace('from \'three\'', 'from \'../../../../three/src/Three.js\'');
|
|
16
|
+
fs.writeFileSync(destination, newValue, 'utf-8');
|
|
17
17
|
}
|
package/ecs/THREEView.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import View from '../ecs/components/View.js'
|
|
1
|
+
import View from '../ecs/components/View.js';
|
|
2
2
|
|
|
3
3
|
export default class THREEView extends View {
|
|
4
4
|
constructor(entity, {
|
|
@@ -6,26 +6,26 @@ export default class THREEView extends View {
|
|
|
6
6
|
visible,
|
|
7
7
|
visibilityExecutor,
|
|
8
8
|
} = {}) {
|
|
9
|
-
super(entity, view, { visible, visibilityExecutor })
|
|
9
|
+
super(entity, view, { visible, visibilityExecutor });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
get position() {
|
|
13
|
-
return this._view.position
|
|
13
|
+
return this._view.position;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
get rotation() {
|
|
17
|
-
return this._view.rotation
|
|
17
|
+
return this._view.rotation;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
get quaternion() {
|
|
21
|
-
return this._view.quaternion
|
|
21
|
+
return this._view.quaternion;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
get scale() {
|
|
25
|
-
return this._view.scale
|
|
25
|
+
return this._view.scale;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
get object3D() {
|
|
29
|
-
return this._view
|
|
29
|
+
return this._view;
|
|
30
30
|
}
|
|
31
31
|
}
|