@damienmortini/three 0.1.163 → 0.1.166
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.
|
@@ -48,6 +48,13 @@ class BasisTextureLoader extends Loader {
|
|
|
48
48
|
this.workerSourceURL = '';
|
|
49
49
|
this.workerConfig = null;
|
|
50
50
|
|
|
51
|
+
console.warn(
|
|
52
|
+
|
|
53
|
+
'THREE.BasisTextureLoader: This loader is deprecated, and will be removed in a future release. '
|
|
54
|
+
+ 'Instead, use Basis Universal compression in KTX2 (.ktx2) files with THREE.KTX2Loader.'
|
|
55
|
+
|
|
56
|
+
);
|
|
57
|
+
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
setTranscoderPath( path ) {
|
|
@@ -47,7 +47,6 @@ import {
|
|
|
47
47
|
PropertyBinding,
|
|
48
48
|
Quaternion,
|
|
49
49
|
QuaternionKeyframeTrack,
|
|
50
|
-
RGBFormat,
|
|
51
50
|
RepeatWrapping,
|
|
52
51
|
Skeleton,
|
|
53
52
|
SkinnedMesh,
|
|
@@ -1478,7 +1477,6 @@ class GLTFMeshStandardSGMaterial extends MeshStandardMaterial {
|
|
|
1478
1477
|
'vec3 specularFactor = specular;',
|
|
1479
1478
|
'#ifdef USE_SPECULARMAP',
|
|
1480
1479
|
' vec4 texelSpecular = texture2D( specularMap, vUv );',
|
|
1481
|
-
' texelSpecular = sRGBToLinear( texelSpecular );',
|
|
1482
1480
|
' // reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture',
|
|
1483
1481
|
' specularFactor *= texelSpecular.rgb;',
|
|
1484
1482
|
'#endif'
|
|
@@ -2253,7 +2251,7 @@ class GLTFParser {
|
|
|
2253
2251
|
|
|
2254
2252
|
// Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the
|
|
2255
2253
|
// expensive work of uploading a texture to the GPU off the main thread.
|
|
2256
|
-
if ( typeof createImageBitmap !== 'undefined' && /Firefox|
|
|
2254
|
+
if ( typeof createImageBitmap !== 'undefined' && /Firefox|^((?!chrome|android).)*safari/i.test( navigator.userAgent ) === false ) {
|
|
2257
2255
|
|
|
2258
2256
|
this.textureLoader = new ImageBitmapLoader( this.options.manager );
|
|
2259
2257
|
|
|
@@ -3179,7 +3177,6 @@ class GLTFParser {
|
|
|
3179
3177
|
|
|
3180
3178
|
} else {
|
|
3181
3179
|
|
|
3182
|
-
materialParams.format = RGBFormat;
|
|
3183
3180
|
materialParams.transparent = false;
|
|
3184
3181
|
|
|
3185
3182
|
if ( alphaMode === ALPHA_MODES.MASK ) {
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
InterleavedBufferAttribute,
|
|
9
9
|
Mesh,
|
|
10
10
|
MeshBasicMaterial,
|
|
11
|
-
RGBFormat,
|
|
12
11
|
RawShaderMaterial,
|
|
13
12
|
Vector2,
|
|
14
13
|
Vector3,
|
|
15
|
-
Vector4
|
|
14
|
+
Vector4,
|
|
15
|
+
RGBAFormat
|
|
16
16
|
} from '../../../../three/src/Three.js';
|
|
17
17
|
|
|
18
18
|
class Lensflare extends Mesh {
|
|
@@ -32,8 +32,8 @@ class Lensflare extends Mesh {
|
|
|
32
32
|
|
|
33
33
|
// textures
|
|
34
34
|
|
|
35
|
-
const tempMap = new FramebufferTexture( 16, 16,
|
|
36
|
-
const occlusionMap = new FramebufferTexture( 16, 16,
|
|
35
|
+
const tempMap = new FramebufferTexture( 16, 16, RGBAFormat );
|
|
36
|
+
const occlusionMap = new FramebufferTexture( 16, 16, RGBAFormat );
|
|
37
37
|
|
|
38
38
|
// material
|
|
39
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@damienmortini/three",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.166",
|
|
4
4
|
"description": "Three.js helpers",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"install": "npm run copyexamples",
|
|
@@ -25,9 +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.130",
|
|
29
29
|
"fs-extra": "^10.0.0",
|
|
30
|
-
"three": "0.
|
|
30
|
+
"three": "0.137.5"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cb0bafdeb0bf9475e139e8248b0c591acac0ebea"
|
|
33
33
|
}
|