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;
|
|