From 849bc63a6c1475e42f7e23d5a19d9d3741d04590 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Sun, 17 Mar 2024 03:37:25 +0100 Subject: [PATCH] clean: small code cleaning --- src/App.tsx | 7 +------ src/components/Chunk.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ae9ba7c..8f44ccd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 }} > @@ -52,17 +52,12 @@ function App() { > - {/* - - */} - {/* - */} diff --git a/src/components/Chunk.tsx b/src/components/Chunk.tsx index d56308a..76d4634 100644 --- a/src/components/Chunk.tsx +++ b/src/components/Chunk.tsx @@ -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;