@damienmortini/three 0.1.160 → 0.1.164
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/gpgpu/THREEGPGPUSystem.js +2 -2
- package/loader/THREELoader.js +1 -1
- package/material/THREEPBRMaterial.js +3 -3
- package/material/THREEShaderMaterial.js +1 -1
- package/object/THREELine.js +1 -1
- package/object/THREEMotionVectorObject.js +1 -1
- package/object/THREERibbon.js +1 -1
- package/object/THREESky.js +2 -2
- package/object/THREESpriteAnimation.js +2 -2
- package/package.json +4 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Mesh, OrthographicCamera, PlaneBufferGeometry, DataTexture, RGBAFormat, FloatType, WebGLRenderer, WebGLRenderTarget, Scene, NearestFilter, RGBFormat, HalfFloatType, MathUtils } from '../../../three/src/Three.js'
|
|
2
2
|
|
|
3
3
|
import THREEShaderMaterial from '../material/THREEShaderMaterial.js'
|
|
4
|
-
import DatatextureShader from '
|
|
5
|
-
import Float16 from '
|
|
4
|
+
import DatatextureShader from '@damienmortini/core/shader/DataTextureShader.js'
|
|
5
|
+
import Float16 from '@damienmortini/core/math/Float16.js'
|
|
6
6
|
|
|
7
7
|
let DEBUG_RENDERER
|
|
8
8
|
|
package/loader/THREELoader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Loader } from '
|
|
1
|
+
import { Loader } from '@damienmortini/core/util/Loader.js'
|
|
2
2
|
import { BasisTextureLoader } from '../examples/loaders/BasisTextureLoader.js'
|
|
3
3
|
import { DRACOLoader } from '../examples/loaders/DRACOLoader.js'
|
|
4
4
|
import { GLTFLoader } from '../examples/loaders/GLTFLoader.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import THREEShaderMaterial from './THREEShaderMaterial.js'
|
|
2
|
-
import LightShader from '
|
|
3
|
-
import RayShader from '
|
|
4
|
-
import PBRShader from '
|
|
2
|
+
import LightShader from '@damienmortini/core/shader/LightShader.js'
|
|
3
|
+
import RayShader from '@damienmortini/core/shader/RayShader.js'
|
|
4
|
+
import PBRShader from '@damienmortini/core/shader/PBRShader.js'
|
|
5
5
|
import { Color, Vector3, ShaderChunk } from '../../../three/src/Three.js'
|
|
6
6
|
|
|
7
7
|
export default class THREEPBRMaterial extends THREEShaderMaterial {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import DEFAULT_VERTEX from '../../../three/src/renderers/shaders/ShaderChunk/default_vertex.glsl.js'
|
|
7
7
|
import DEFAULT_FRAGMENT from '../../../three/src/renderers/shaders/ShaderChunk/default_fragment.glsl.js'
|
|
8
8
|
|
|
9
|
-
import Shader from '
|
|
9
|
+
import Shader from '@damienmortini/core/3d/Shader.js'
|
|
10
10
|
|
|
11
11
|
const toWebGL1 = (source, type) => {
|
|
12
12
|
source = source.replace(/#version.*?\n/g, '')
|
package/object/THREELine.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3D, BufferGeometry, BufferAttribute, AnimationMixer, DataTexture, RGBAFormat, FloatType, RGBFormat, Points, Color, Matrix4 } from '../../../three/src/Three.js'
|
|
2
|
-
import { quaternionFromMatrix } from '
|
|
2
|
+
import { quaternionFromMatrix } from '@damienmortini/core/shader/TransformShader.js'
|
|
3
3
|
import THREEGPGPUSystem from '../../three/gpgpu/THREEGPGPUSystem.js'
|
|
4
4
|
import THREEShaderMaterial from '../../three/material/THREEShaderMaterial.js'
|
|
5
5
|
|
package/object/THREERibbon.js
CHANGED
package/object/THREESky.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
IcosahedronBufferGeometry,
|
|
6
6
|
} from '../../../three/src/Three.js'
|
|
7
7
|
import THREEShaderMaterial from '../material/THREEShaderMaterial.js'
|
|
8
|
-
import SkyShader from '
|
|
9
|
-
import GradientNoiseShader from '
|
|
8
|
+
import SkyShader from '@damienmortini/core/shader/SkyShader.js'
|
|
9
|
+
import GradientNoiseShader from '@damienmortini/core/shader/noise/GradientNoiseShader.js'
|
|
10
10
|
|
|
11
11
|
const skyShader = {
|
|
12
12
|
uniforms: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import THREESprite from './THREESprite.js'
|
|
3
3
|
|
|
4
|
-
import Signal from '
|
|
5
|
-
import Ticker from '
|
|
4
|
+
import Signal from '@damienmortini/core/util/Signal'
|
|
5
|
+
import Ticker from '@damienmortini/core/util/Ticker'
|
|
6
6
|
|
|
7
7
|
const SPRITESHEETS = new Map()
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@damienmortini/three",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.164",
|
|
4
4
|
"description": "Three.js helpers",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"install": "npm run copyexamples",
|
|
@@ -25,11 +25,9 @@
|
|
|
25
25
|
"bugs": "https://github.com/damienmortini/lib/issues",
|
|
26
26
|
"homepage": "https://github.com/damienmortini/lib/tree/main/packages/three",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@damienmortini/core": "^0.2.
|
|
28
|
+
"@damienmortini/core": "^0.2.129",
|
|
29
|
+
"fs-extra": "^10.0.0",
|
|
29
30
|
"three": "0.136.0"
|
|
30
31
|
},
|
|
31
|
-
"
|
|
32
|
-
"fs-extra": "^10.0.0"
|
|
33
|
-
},
|
|
34
|
-
"gitHead": "ac2465ab13c675aac92f8bec7343b8282616c5d7"
|
|
32
|
+
"gitHead": "5d6d7bc792737ff3f3861c41f8d452e52d26d1a3"
|
|
35
33
|
}
|