useEdgeSplit
This hook mutates a mesh geometry using three's Edge Split modifier. The first parameter is the cut-off angle, and the second parameter is a tryKeepNormals
flag (default true
).
const meshRef = useEdgeSplit(Math.PI / 2)
return (
<mesh ref={meshRef}>
<boxBufferGeometry args={[10, 10]} />
</mesh>
)