fix: correct instancedMesh args (null → undefined) for TypeScript compatibility
This commit is contained in:
+1
-1
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user