From 0eaf72b83b5097ddb8d32b66f30d803e04f17938 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 16 May 2023 16:30:33 -0600 Subject: [PATCH] remove yet more randomness that has no effect in stats-world --- src/components/World/World.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/components/World/World.js b/src/components/World/World.js index 03106b2..ca72850 100644 --- a/src/components/World/World.js +++ b/src/components/World/World.js @@ -38,21 +38,8 @@ class World { // Light Instance, with optional light helper const { light } = createLights(color); - // Random values for terrain vertices - // We could do this on the terrain.js file, - // but if we want to have a single random - // number array for more than one terrain - // instance, then we would be in trouble. - const randomVals = []; - for (let i = 0; i < 12675; i++) { - randomVals.push(Math.random() - 0.5); - } - // Terrain Instance - const terrain = createTerrain({ - color: color, - randVertexArr: randomVals, - }); + const terrain = createTerrain({ color: color }); loop.updatables.push(controls); loop.updatables.push(light);