|
@ -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
|
|
|