From 4c0bc90ac8ae9b574afd443d2a2bb72f05a24b12 Mon Sep 17 00:00:00 2001 From: Oscar Lorentzon Date: Tue, 2 Apr 2024 16:19:44 -0700 Subject: [PATCH] feat: mark material for update when shader is set --- src/component/image/ImageGLRenderer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/image/ImageGLRenderer.ts b/src/component/image/ImageGLRenderer.ts index c4f49a40..4eb1eb8b 100644 --- a/src/component/image/ImageGLRenderer.ts +++ b/src/component/image/ImageGLRenderer.ts @@ -209,6 +209,7 @@ export class ImageGLRenderer { material.vertexShader = resolveShader( shader.vertex, plane.camera); + material.needsUpdate = true; } }