@needle-tools/gltf-progressive 1.0.0-alpha.14 → 1.0.0-alpha.15
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 +5 -0
- package/examples/modelviewer.html +3 -3
- package/gltf-progressive.js +180 -156
- package/gltf-progressive.min.js +3 -3
- package/gltf-progressive.umd.cjs +3 -3
- package/lib/extension.js +4 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +5 -4
- package/lib/lods_manager.d.ts +37 -2
- package/lib/lods_manager.js +54 -4
- package/lib/plugins/index.d.ts +1 -1
- package/lib/plugins/index.js +0 -1
- package/lib/plugins/modelviewer.js +2 -2
- package/lib/plugins/plugin.d.ts +0 -4
- package/lib/plugins/plugin.js +0 -6
- package/lib/utils.d.ts +13 -0
- package/lib/utils.js +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ 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.0.0-alpha.15] - 2023-05-24
|
|
8
|
+
- add: `getRaycastMesh` method
|
|
9
|
+
- add: LODsManager does now expose `targetTriangleDensity`. The target triangle density is the desired max amount of triangles on screen when the mesh is filling the screen.
|
|
10
|
+
- change: create LODsManager via `LODsManager.get(renderer)`
|
|
11
|
+
|
|
7
12
|
## [1.0.0-alpha.13] - 2023-05-24
|
|
8
13
|
- fix: modelviewer error when trying to access undefined texture extensions
|
|
9
14
|
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
<script type="module" src="https://www.unpkg.com/@needle-tools/gltf-progressive@latest"></script>
|
|
15
15
|
</head>
|
|
16
16
|
|
|
17
|
-
<model-viewer src="https://engine.needle.tools/demos/gltf-progressive/assets/church/model.glb" ar shadow-intensity="1"
|
|
18
|
-
touch-action="pan-y"></model-viewer>
|
|
17
|
+
<model-viewer src="https://engine.needle.tools/demos/gltf-progressive/assets/church/model.glb" ar shadow-intensity="1"
|
|
18
|
+
camera-controls touch-action="pan-y" auto-rotate max-camera-orbit="auto 90deg auto"></model-viewer>
|
|
19
19
|
|
|
20
20
|
<style>
|
|
21
21
|
model-viewer {
|
|
22
22
|
width: 100%;
|
|
23
|
-
height:
|
|
23
|
+
height: 100%;
|
|
24
24
|
}
|
|
25
25
|
</style>
|
|
26
26
|
|