@charivo/render-live2d 0.4.2 → 0.4.4
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/dist/renderer.js
CHANGED
|
@@ -13770,14 +13770,9 @@ var LAppModel = class extends CubismUserModel {
|
|
|
13770
13770
|
if (this._physics) {
|
|
13771
13771
|
this._physics.evaluate(this._model, deltaTimeSeconds);
|
|
13772
13772
|
}
|
|
13773
|
-
if (this._lipsync) {
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
lipSyncValue = this.realtimeLipSyncRms * 1.8;
|
|
13777
|
-
} else {
|
|
13778
|
-
this.wavHandler.update(deltaTimeSeconds);
|
|
13779
|
-
lipSyncValue = this.wavHandler.getRms();
|
|
13780
|
-
}
|
|
13773
|
+
if (this._lipsync && !this.useRealtimeLipSync) {
|
|
13774
|
+
this.wavHandler.update(deltaTimeSeconds);
|
|
13775
|
+
const lipSyncValue = this.wavHandler.getRms();
|
|
13781
13776
|
for (let i = 0; i < this.lipSyncIds.getSize(); i++) {
|
|
13782
13777
|
this._model.addParameterValueById(
|
|
13783
13778
|
this.lipSyncIds.at(i),
|
|
@@ -13789,7 +13784,7 @@ var LAppModel = class extends CubismUserModel {
|
|
|
13789
13784
|
if (this._pose) {
|
|
13790
13785
|
this._pose.updateParameters(this._model, deltaTimeSeconds);
|
|
13791
13786
|
}
|
|
13792
|
-
if (this.useRealtimeLipSync
|
|
13787
|
+
if (this.useRealtimeLipSync) {
|
|
13793
13788
|
const lipSyncValue = this.realtimeLipSyncRms * 1.8;
|
|
13794
13789
|
for (let i = 0; i < this.lipSyncIds.getSize(); i++) {
|
|
13795
13790
|
this._model.setParameterValueById(this.lipSyncIds.at(i), lipSyncValue);
|