v0.4.0
Changes in v0.4.0-beta and v0.4.0-beta.2 are included but not mentioned below, please check out their release notes.
Support handling opacity values without Pose (Cubism 4 only)
This feature sets opacity values directly from motion curves, instead of getting the values calculated by Pose. This prevents opacity values from being ignored when the model does not have a Pose, but may (unconfirmed) cause unexpected opacity results when the model does have a Pose, so it's recommended to enable this only when you're intending to display models without pose.
To be consistent with Live2D SDK's behavior, it's disabled by default, you can enable it by changing the config:
import { config } from 'pixi-live2d-display';
config.cubism4.setOpacityFromMotion= true;
Related PR: guansss/CubismWebFramework#1, thanks to @eipip1e0 !
Mouse tracking optimization
Now character's eyes will look at the mouse position more precisely when the mouse is far away.
Related PR: #74, thanks to @BenchWidth !
Breaking changes:
- Upgraded Cubism 4 framework to R4 (not sure if it's actually breaking).
- Source code (
src/
,cubism/src/
) is no longer shipped with npm package.