示例#1
0
    public float getNoise(float x, float y, ref perlinNoise p_noiseGenerator)
    {
        float noiseValue = p_noiseGenerator.getNoise(x, y);

        if (noiseValue <= m_noiseSettings.cutoffMin || noiseValue >= m_noiseSettings.cutoffMax)
        {
            return(0);
        }
        return(noiseValue);
    }