From a63c760bfc98b7d7f63720e0e7f3e0047a9b6058 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Thu, 13 May 2021 22:03:34 +0200 Subject: [PATCH] fix texture for ShaderMaterial --- src/materials/Texture.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/materials/Texture.ts b/src/materials/Texture.ts index c0036b8..4befcc1 100644 --- a/src/materials/Texture.ts +++ b/src/materials/Texture.ts @@ -45,7 +45,7 @@ export default defineComponent({ this.material.setTexture(this.texture, this.name) if (this.material.material instanceof ShaderMaterial && this.uniform) { - (this.material as any).uniforms[this.uniform] = { value: this.texture } + (this.material.material).uniforms[this.uniform] = { value: this.texture } } }, refreshTexture() {