fix: correct instancedMesh args (null → undefined) for TypeScript compatibility

This commit is contained in:
Pixel
2026-03-10 00:17:13 +01:00
parent f94744c9b6
commit 6b81b66f0d
+1 -1
View File
@@ -22,7 +22,7 @@ function ParticleField() {
); );
return ( return (
<instancedMesh ref={meshRef} args={[null, null, count]}> <instancedMesh ref={meshRef} args={[undefined, undefined, count]}>
<sphereGeometry args={[0.05, 8, 8]} /> <sphereGeometry args={[0.05, 8, 8]} />
<meshBasicMaterial color="#a855f7" transparent opacity={0.8} /> <meshBasicMaterial color="#a855f7" transparent opacity={0.8} />
</instancedMesh> </instancedMesh>