Exemple #1
0
    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));
        };
    }
Exemple #2
0
 public void SetRoughnessFunction(CalculateRoughness roughness)
 {
     m_roughness = roughness;
 }