コード例 #1
0
    protected override bool CalculateHeight(out float height, int x, int z)
    {
        float noiseValue = noiseFunction.Sample2D(offset.x + x / (float)width, offset.y + z / (float)length);

        height = (noiseValue + 1) / 2;
        return(true);
    }