- Home /
Perlin Noise Frequency
I was wondering if there is an easy way to change the frequency for the Mathf.perlin noise function. I figured out how to change the amplitude by multiplying the result.
Answer by maccabbe · Mar 23, 2015 at 05:40 AM
Mathf.Perlin(x, y)
uses (x, y)
as the coordinate of the sample point but this does not need to be the same as the world position. If you want to change the frequency then change how close the sample points are to each other by multiplying (or dividing) them by a constant, i.e. Mathf.Perlin(x*2f, y*2f)
.
Ok I guess I confused frequency and amplitude. Let me get this straight. $$anonymous$$athf.Perlin(x*Frequency,y*Frequency)*Amplitude? This formula seems to work perfectly thank you!
Your answer
![](https://koobas.hobune.stream/wayback/20220613191003im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio frequency sample on Android 1 Answer
Perlin noise problem 0 Answers
Procedural terrain 1 Answer
Can anyone explain this code? 1 Answer
Infinite mountain height map 1 Answer