From b4634a4d6d1e7108d47bc7e8f904fd7db80872b3 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Thu, 18 Jul 2024 02:40:53 +0900 Subject: [PATCH] Turn off frustum culling for skinned meshes --- src/viser/client/src/MessageHandler.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viser/client/src/MessageHandler.tsx b/src/viser/client/src/MessageHandler.tsx index 439e055d..2b6eeec2 100644 --- a/src/viser/client/src/MessageHandler.tsx +++ b/src/viser/client/src/MessageHandler.tsx @@ -464,6 +464,9 @@ function useMessageHandler() { geometry={geometry} material={material} skeleton={skeleton} + // Leaving culling on (default) sometimes causes the mesh to + // randomly disappear, as of r3f==8.16.2. + frustumCulled={false} >