@charivo/render-live2d 0.2.0 → 0.2.1
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 +4 -4
- package/dist/renderer.js.map +1 -1
- package/dist/src/renderer.d.ts +1 -1
- package/dist/src/renderer.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Live2D Cubism renderer for Charivo.
|
|
4
4
|
|
|
5
5
|
This package is the concrete browser renderer for Live2D models. In most apps
|
|
6
|
-
you use it together with `@charivo/render
|
|
6
|
+
you use it together with `@charivo/render`.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
pnpm add @charivo/render-live2d @charivo/render
|
|
11
|
+
pnpm add @charivo/render-live2d @charivo/render
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
17
|
import { createLive2DRenderer } from "@charivo/render-live2d";
|
|
18
|
-
import { createRenderManager } from "@charivo/render
|
|
18
|
+
import { createRenderManager } from "@charivo/render";
|
|
19
19
|
|
|
20
20
|
const renderer = createLive2DRenderer({ canvas });
|
|
21
21
|
const renderManager = createRenderManager(renderer, {
|
|
@@ -41,7 +41,7 @@ The renderer exposes:
|
|
|
41
41
|
- `playMotionByGroup(group, index)`
|
|
42
42
|
- `lookAt({ x, y })`
|
|
43
43
|
|
|
44
|
-
When used through `@charivo/render
|
|
44
|
+
When used through `@charivo/render`, realtime lip sync, mouse tracking,
|
|
45
45
|
and gaze are handled for you.
|
|
46
46
|
|
|
47
47
|
## License Note
|