@krate/3d 0.5.0-rc.16 → 0.5.0-rc.17
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 +6 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ pnpm add @krate/3d filament
|
|
|
13
13
|
|
|
14
14
|
`filament` provides the WebAssembly engine and is a peer dependency, so it is
|
|
15
15
|
never bundled into `@krate/3d` or the `krate` binary: the Krate build copies its
|
|
16
|
-
`filament.js` and `filament.wasm` into `dist/assets/3d
|
|
17
|
-
with a script tag. Its version must match `materials/VERSION`, because the
|
|
16
|
+
`filament.js` and `filament.wasm` into `dist/assets/3d/filament-<version>/` and the
|
|
17
|
+
page loads them with a script tag. Its version must match `materials/VERSION`, because the
|
|
18
18
|
pre-compiled materials are version-locked (the build warns, KR8702, otherwise).
|
|
19
19
|
|
|
20
20
|
## Example
|
|
@@ -37,6 +37,10 @@ export default function Page() {
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
Besides `<Canvas>` and the mesh, geometry, material and light elements, the package
|
|
41
|
+
exports `OrbitControls`, `Environment`, `useFrame` and `useGLTF`. The canvas fills its
|
|
42
|
+
parent, so give the parent a size. Documentation: https://krate.js.org/docs/features/3d/
|
|
43
|
+
|
|
40
44
|
## Materials
|
|
41
45
|
|
|
42
46
|
`materials/*.filamat` are compiled from `materials/src/*.mat`. Rebuild them with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krate/3d",
|
|
3
|
-
"version": "0.5.0-rc.
|
|
3
|
+
"version": "0.5.0-rc.17",
|
|
4
4
|
"description": "Google Filament 3D for Krate: build physically based scenes with JSX, compiled ahead of time into direct engine calls.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"NOTICE"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@krate/runtime": "^0.5.0-rc.
|
|
50
|
+
"@krate/runtime": "^0.5.0-rc.17",
|
|
51
51
|
"filament": ">=1.53.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"happy-dom": "^20.14.5",
|
|
55
55
|
"typescript": "^5.5.0",
|
|
56
56
|
"vitest": "^5.0.3",
|
|
57
|
-
"@krate/runtime": "0.5.0-rc.
|
|
57
|
+
"@krate/runtime": "0.5.0-rc.17"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"filament": {
|