UNPKG

arx-level-generator

Version:
13 lines (12 loc) 721 B
import { BufferGeometry } from 'three'; import { Vector3 } from '../../Vector3.js'; /** * @param magnitude - the maximum amount in both directions which the peeks will reach, or if an array with 2 * numbers specified then that will be used as minimum maximum range * @param percentage - for every vertex there's a certain percentage chance that it will be a peek. control the * percentage with this parameter * @param smoothenPeeks - whether to apply smoothing around the peeks * @param geometry - any threejs geometry * @returns the vectors of the peeks */ export declare const makeBumpy: (magnitude: number | [number, number], percentage: number, smoothenPeeks: boolean, geometry: BufferGeometry) => Vector3[];