#
luxiaotao1123
2024-04-24 ef1c6cacf5aa4b2bcce35eb3b7bae2db95692edd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { Grid } from '@react-three/drei';
 
const GridModule = (gridConfig) => {
  return (
    <Grid
      args={[100000, 100000, 100, 100]}
      rotation={[0, 0, 0]}
      position={[0, -10, 0]}
      receiveShadow
      cellColor="#6f6f6f"
      cellSize={50}
      sectionSize={100}
      sectionThickness={1}
      cellThickness={1}
      sectionColor="#9d4b4b"
      fadeDistance={10000}
      material={<meshStandardMaterial color="#aa" />}
      {...gridConfig}
    ></Grid>
  );
};
 
export default GridModule;