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 3864052
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/viser/client/src/MessageHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ function useMessageHandler() {
geometry={geometry}
material={material}
skeleton={skeleton}
// TODO: leaving culling on (default) sometimes causes the
// mesh to randomly disappear, as of r3f==8.16.2.
//
// Probably this is because we don't update the bounding
// sphere after the bone transforms change.
frustumCulled={false}
>
<OutlinesIfHovered alwaysMounted />
</skinnedMesh>
Expand Down

0 comments on commit 3864052

Please sign in to comment.