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); }