public DSANoise(int detail) { m_randomGenerator = new UnityRandomGenerator(); m_max = (int)Mathf.Pow(2, detail); Reset(); m_roughness = (average, max, size) => { return(Mathf.Pow(2, -1.0f)); }; }
public void SetRoughnessFunction(CalculateRoughness roughness) { m_roughness = roughness; }