@canvas3/nuxt 0.1.22 → 0.1.23
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/module.json
CHANGED
|
@@ -412,21 +412,24 @@ class Canvas3Class {
|
|
|
412
412
|
if (this.meshPositionsUpdate) {
|
|
413
413
|
this.resizeImageStore();
|
|
414
414
|
}
|
|
415
|
-
this.
|
|
415
|
+
if (this.animations.size > 0)
|
|
416
|
+
this.externalAnimationsRender();
|
|
416
417
|
if (this.materials.length > 0) {
|
|
417
418
|
for (const material of this.materials) {
|
|
418
419
|
if (material.uniforms.uTime)
|
|
419
420
|
material.uniforms.uTime.value = this.time;
|
|
420
|
-
if (
|
|
421
|
-
material.uniforms.uMouse
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
material.uniforms.uMouseMovement
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
421
|
+
if (this.mouseMoveInProgress) {
|
|
422
|
+
if (material.uniforms.uMouse)
|
|
423
|
+
material.uniforms.uMouse.value.set(
|
|
424
|
+
this.mouse.x,
|
|
425
|
+
this.mouse.y
|
|
426
|
+
);
|
|
427
|
+
if (material.uniforms.uMouseMovement)
|
|
428
|
+
material.uniforms.uMouseMovement.value.set(
|
|
429
|
+
this.mouse.movementX,
|
|
430
|
+
this.mouse.movementY
|
|
431
|
+
);
|
|
432
|
+
}
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
if (this.composer) {
|