mirror of
https://github.com/Floriansylvain/generic-threejs-game.git
synced 2026-08-19 11:43:18 +02:00
clean: small code cleaning
This commit is contained in:
+1
-6
@@ -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} />
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user