@needle-tools/gltf-build-pipeline 1.4.7 → 1.4.8

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,6 +4,10 @@ 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.8] - 2023-04-22
8
+ - fix: update sharp package to `^0.32.6`
9
+ - change: NEEDLE_progressive meshes max LOD error increased
10
+
7
11
  ## [1.4.7] - 2023-04-16
8
12
  - add: `asset.extras.needle` now contains information about used build pipeline
9
13
 
@@ -342,7 +342,7 @@ export function make_progressive_meshes(filePath, _options, opts) {
342
342
  const t = l / MAX_LODS;
343
343
  const latest = LODS[LODS.length - 1];
344
344
  const ratio = latest.ratio * .5;
345
- const error = .05;
345
+ const error = Math.min(.013 * (l + 1), 0.05);
346
346
  LODS.push({
347
347
  ratio: ratio,
348
348
  error,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/gltf-build-pipeline",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
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",
@@ -30,7 +30,7 @@
30
30
  "ndarray-pixels": "^2.0.1",
31
31
  "p-limit": "3.1.0",
32
32
  "semver": "^7.3.7",
33
- "sharp": "^0.31.3",
33
+ "sharp": "^0.32.6",
34
34
  "tmp": "^0.2.1",
35
35
  "uuid": "^9.0.1"
36
36
  },