📅  最后修改于: 2022-03-11 14:48:39.807000             🧑  作者: Mango
public static float PerlinNoise3D(float x, float y, float z)
{
float xy = Mathf.PerlinNoise(x, y);
float xz = Mathf.PerlinNoise(x, z);
float yz = Mathf.PerlinNoise(y, z);
float yx = Mathf.PerlinNoise(y, x);
float zx = Mathf.PerlinNoise(z, x);
float zy = Mathf.PerlinNoise(z, y);
return (xy + xz + yz + yx + zx + zy) / 6;
}