@splinetool/loader 0.9.23 → 0.9.27
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/README.md +8 -2
- package/build/SplineLoader.js +132 -113
- package/build/convertCameras.d.ts +2 -0
- package/build/convertTransmission.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> Three.js loader for `.spline` files.
|
|
4
4
|
|
|
5
|
-
It returns a three.js compatible
|
|
5
|
+
It returns a three.js compatible representation of the file scene.
|
|
6
6
|
|
|
7
|
-
You should use this package if you want to access your Spline objects and materials from code and manipulate them yourself.
|
|
7
|
+
You should use this package if you want to access your Spline objects and materials from code and manipulate them yourself in a Three.js environment.
|
|
8
8
|
|
|
9
9
|
If you want to display your Spline scene with interactions and states matching Spline play mode, we recommend you use [spline-runtime](https://www.npmjs.com/package/@splinetool/runtime) instead.
|
|
10
10
|
|
|
@@ -37,3 +37,9 @@ loader.load(
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Limitations
|
|
42
|
+
|
|
43
|
+
This loader allows most Spline objects and materials to be rendered directly into three.js without a Spline runtime. Still it's possible you'll notice some differences between the loaded scene and what it looked like in the Spline editor because we fallback missing Spline capabilities to "the next best thing" in order for it to work.
|
|
44
|
+
|
|
45
|
+
- The **Glass layer** is only partially supported when used outside of the Spline Runtime. In THREE.js, transmission does not handle transparent objects. We advise against combining Glass layers and alpha objects in the same scene.
|