Browse Source

remove yet more randomness that has no effect in stats-world

pull/18/head
Trent Larson 2 years ago
parent
commit
0eaf72b83b
  1. 15
      src/components/World/World.js

15
src/components/World/World.js

@ -38,21 +38,8 @@ class World {
// Light Instance, with optional light helper // Light Instance, with optional light helper
const { light } = createLights(color); 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 // Terrain Instance
const terrain = createTerrain({ const terrain = createTerrain({ color: color });
color: color,
randVertexArr: randomVals,
});
loop.updatables.push(controls); loop.updatables.push(controls);
loop.updatables.push(light); loop.updatables.push(light);

Loading…
Cancel
Save