clean: small code cleaning

This commit is contained in:
Florian Sylvain
2024-03-17 03:37:25 +01:00
parent ca5caae875
commit 849bc63a6c
2 changed files with 7 additions and 11 deletions
+1 -6
View File
@@ -37,7 +37,7 @@ function App() {
className="canvas"
ref={container}
shadows={{ type: PCFSoftShadowMap }}
camera={{ fov: 50, frustumCulled: true, near: 0.1, far: 129 }}
camera={{ fov: 50, frustumCulled: true, near: 0.1, far: 200 }}
>
<Cubes cubesPosition={cubes}></Cubes>
@@ -52,17 +52,12 @@ function App() {
>
<Player></Player>
<ChunkGenerator></ChunkGenerator>
{/* <Chunk position={new Vector2(0, 0)} seed={2234180}></Chunk>
<Chunk position={new Vector2(100, 0)} seed={2234180}></Chunk>
<Chunk position={new Vector2(0, 100)} seed={2234180}></Chunk> */}
</KeyboardControls>
</GameContext.Provider>
<ambientLight intensity={1} />
<color args={["lightblue"]} attach={"background"}></color>
{/* <gridHelper args={[100, 100]}></gridHelper>
<axesHelper args={[100]}></axesHelper> */}
<EffectComposer enableNormalPass>
<Bloom mipmapBlur luminanceThreshold={0.4} />
<Vignette eskil={false} offset={0.2} darkness={0.8} />
+6 -5
View File
@@ -15,12 +15,13 @@ const grassTexture = new TextureLoader().load("./texture_grass.jpg");
grassTexture.wrapS = grassTexture.wrapT = RepeatWrapping;
grassTexture.repeat.set(100, 100);
const SIZE = 100;
const SCALE = 1.5;
const AMPLITUDE = 30;
const OVERLAP = 0.5;
const SCALE = 5;
const AMPLITUDE = 10;
const GEOMETRY = 50;
const CHUNK_SIZE = 100;
const SIZE = 100; // CHANGE WITH CAUTION
const OVERLAP = 0.5; // CHANGE WITH CAUTION
const CHUNK_SIZE = 100; // CHANGE WITH CAUTION
const ADJUSTED_GEOMETRY = GEOMETRY + OVERLAP * 2;
const ADJUSTED_SIZE = SIZE + OVERLAP * 2;