@needle-tools/gltf-progressive 1.0.0-alpha.11 → 1.0.0-alpha.13
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 +7 -0
- package/examples/modelviewer.html +27 -0
- package/examples/react-three-fiber/.prettierrc +10 -0
- package/examples/react-three-fiber/index.html +26 -0
- package/examples/react-three-fiber/package-lock.json +3587 -0
- package/examples/react-three-fiber/package.json +35 -0
- package/examples/react-three-fiber/tsconfig.json +22 -0
- package/examples/react-three-fiber/vite.config.js +44 -0
- package/examples/threejs/index.html +51 -0
- package/examples/threejs/main.js +76 -0
- package/gltf-progressive.js +189 -179
- package/gltf-progressive.min.js +3 -3
- package/gltf-progressive.umd.cjs +3 -3
- package/lib/extension.js +8 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lods_manager.js +17 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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.13] - 2023-05-24
|
|
8
|
+
- add: vanilla three.js example
|
|
9
|
+
- fix: texture LODs losing filter setting
|
|
10
|
+
|
|
11
|
+
## [1.0.0-alpha.12] - 2023-05-19
|
|
12
|
+
- fix: update LODs when using postprocessing
|
|
13
|
+
|
|
7
14
|
## [1.0.0-alpha.11] - 2023-05-17
|
|
8
15
|
- add: expose `setDracoDecoderLocation` and `setKTX2TranscoderLocation`
|
|
9
16
|
- fix: allow using draco decoder and ktx2 transcoder from local filepath
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
|
|
3
|
+
<head>
|
|
4
|
+
<title>Minimal Example</title>
|
|
5
|
+
<script type="importmap">
|
|
6
|
+
{
|
|
7
|
+
"imports": {
|
|
8
|
+
"three": "https://unpkg.com/three/build/three.module.js",
|
|
9
|
+
"three/": "https://unpkg.com/three/"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.4.0/model-viewer.min.js"></script>
|
|
14
|
+
<script type="module" src="https://www.unpkg.com/@needle-tools/gltf-progressive@1.0.0-alpha.4"></script>
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<model-viewer src="https://engine.needle.tools/demos/lods/assets/ganesha.glb" ar shadow-intensity="1" camera-controls
|
|
18
|
+
touch-action="pan-y"></model-viewer>
|
|
19
|
+
|
|
20
|
+
<style>
|
|
21
|
+
model-viewer {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100vh;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
|
|
27
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="favicon.ico">
|
|
6
|
+
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
7
|
+
|
|
8
|
+
<title>Made with Needle</title>
|
|
9
|
+
<meta name="description" content="🌵 Made with Needle Engine">
|
|
10
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
11
|
+
<meta property="og:title" content="Made with Needle" />
|
|
12
|
+
<meta property="og:description" content="🌵 Made with Needle Engine" />
|
|
13
|
+
|
|
14
|
+
<meta property="twitter:image" content="" />
|
|
15
|
+
<meta property="og:image" content="" />
|
|
16
|
+
|
|
17
|
+
<meta name="robots" content="index,follow">
|
|
18
|
+
<meta name="url" content="http://needle.tools">
|
|
19
|
+
<link rel="stylesheet" href="./src/style.css">
|
|
20
|
+
</head>
|
|
21
|
+
|
|
22
|
+
<body>
|
|
23
|
+
<script type="module" src="./src/index.tsx"></script>
|
|
24
|
+
<div id="root" style="width:100vw; height:100vh;"></div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|