@needle-tools/gltf-build-pipeline 1.4.1 → 1.4.2
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/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [1.4.
|
|
7
|
+
## [1.4.2] - 2023-04-02
|
|
8
8
|
- release
|
|
9
9
|
|
|
10
10
|
## [1.4.1-beta.15] - 2023-04-02
|
|
@@ -150,14 +150,17 @@ export function make_progressive_textures(filePath, _options = TEXTURE_RESIZE_DE
|
|
|
150
150
|
}
|
|
151
151
|
const relName = path.relative(directory, outPath);
|
|
152
152
|
// TODO: this path should be added to the NEEDLE dependencies extension
|
|
153
|
-
|
|
153
|
+
const model = {
|
|
154
154
|
guid: textureGuid,
|
|
155
155
|
lods: [
|
|
156
156
|
{
|
|
157
157
|
path: relName,
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
|
-
}
|
|
160
|
+
};
|
|
161
|
+
// for backwards compatibility - this should be removed in the future
|
|
162
|
+
model["uri"] = relName;
|
|
163
|
+
texture.setExtension(NEEDLE_PROGRESSIVE_EXTENSION_NAME, progressiveExt.createTexture(model));
|
|
161
164
|
const key = getKey(texture);
|
|
162
165
|
if (opts.useCache) {
|
|
163
166
|
const cached = tryGetFromCache(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"type": "module",
|