From 8a8944949e6475e1a418a260dcf443a6f6764289 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Wed, 17 Jan 2024 12:04:09 +0900 Subject: [PATCH] fix (MToon): Workaround typing of `UniformsUtils.merge` not a proper typing, might want to fix from three-ts-types side --- packages/three-vrm-materials-mtoon/src/MToonMaterial.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts b/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts index 9c8cbfbce..83aab2a6e 100644 --- a/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts +++ b/packages/three-vrm-materials-mtoon/src/MToonMaterial.ts @@ -446,7 +446,7 @@ export class MToonMaterial extends THREE.ShaderMaterial { uvAnimationRotationPhase: { value: 0.0 }, }, parameters.uniforms ?? {}, - ]); + ]) as typeof MToonMaterial.prototype.uniforms; // == finally compile the shader program ======================================================= this.setValues(parameters);