简体   繁体   中英

Unity's Perlin Noise


I am working on a terrain editor software that can be used by people to modify our game.
I am creating the application in Visual Studio.
When generating terrainmaps we use PerlinNoise.
In the game we use:

for (int y = 0; y < pointCount; y++)
   valuePointer[y] += Mathf.PerlinNoise((float)(start + delta * y) * width, 0) * height;
}

But you can't use Unity's math liberary outside unity's environment.
Since they depend on some C++ scripts that Mono would implement or something like that.

My question is: What method/liberary is best to use so we can use it in the Unity project and in the Visual Studio project?
Thanks in advance!

Unity具有独立的高性能数学库,只需查看以下内容即可:https://github.com/Unity-Technologies/Unity.Mathematics

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM