Skip to content

Commit

Permalink
Turn off frustum culling for skinned meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jul 17, 2024
1 parent aed4c55 commit b4634a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/viser/client/src/MessageHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
<OutlinesIfHovered alwaysMounted />
</skinnedMesh>
Expand Down

0 comments on commit b4634a4

Please sign in to comment.