简体   繁体   English

Unity的Perlin噪声

[英]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. 我在Visual Studio中创建应用程序。
When generating terrainmaps we use PerlinNoise. 生成地形图时,我们使用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. 但是您不能在统一环境之外使用Unity的数学库。
Since they depend on some C++ scripts that Mono would implement or something like that. 由于它们依赖于Mono将实现的某些C ++脚本或类似的东西。

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? 我的问题是:最好使用哪种方法/库,以便我们可以在Unity项目和Visual Studio项目中使用它?
Thanks in advance! 提前致谢!

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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