mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
28 lines
641 B
TypeScript
28 lines
641 B
TypeScript
import { Color } from 'three';
|
|
import InfiniteGridHelper from '../../../../../components/InfiniteGridHelper';
|
|
import { useTankopedia } from '../../../../../stores/tankopedia';
|
|
|
|
export function SceneProps() {
|
|
const showGrid = useTankopedia((state) => state.model.visual.showGrid);
|
|
|
|
if (!showGrid) return null;
|
|
|
|
return (
|
|
<>
|
|
<InfiniteGridHelper
|
|
size1={1 / 5}
|
|
size2={1}
|
|
distance={20}
|
|
color={new Color('#ffffff')}
|
|
/>
|
|
<InfiniteGridHelper
|
|
position={[0, 1e-4, 0]}
|
|
size1={0}
|
|
size2={100}
|
|
distance={25}
|
|
color={new Color('red')}
|
|
/>
|
|
</>
|
|
);
|
|
}
|