Browse Source

remove some random numbers that don't seem to make a difference in stats-world

kb/add-usage-guide
Trent Larson 2 years ago
parent
commit
41d3ad56f5
  1. 6
      src/components/World/components/objects/terrain.js

6
src/components/World/components/objects/terrain.js

@ -27,12 +27,6 @@ export function createTerrain(props) {
plane.geometry.attributes.position.originalPosition = plane.geometry.attributes.position.originalPosition =
plane.geometry.attributes.position.array; plane.geometry.attributes.position.array;
//Randomizing our vertices position
const { array } = plane.geometry.attributes.position;
for (let i = 0; i < array.length; i++) {
props.randVertexArr.push(Math.random());
}
plane.geometry.attributes.position.randomValues = props.randVertexArr; plane.geometry.attributes.position.randomValues = props.randVertexArr;
// eslint-disable-next-line @typescript-eslint/no-empty-function // eslint-disable-next-line @typescript-eslint/no-empty-function

Loading…
Cancel
Save