Textures disappear on InstancedRigidBodies (rapier) when moving or changing pointer

when i move around or change the pointer direction, the textures on InstancedRigidBodies vanish. it works fine with instances from drei. the problem persists if i set textures like

<meshStandardMaterial />

@react-three/rapier”: “^1.3.1”,
“three”: “^0.165.0”,
“next”: “14.2.3”,

any help or suggestions would be appreciated!

useEffect(() => {
meshRef.current?.computeBoundingBox()
}, [blocks])

this solved the issue

and meshRef.current?.computeBoundingSphere()

onAfterRender

onAfterShadow