//
// GPU STUFF
//
private static void SetShaderVars(UnityEngine.ComputeShader shader, UnityEngine.Vector2 noiseOffset, bool normalize, float noiseScale)
{
shader.SetInt("octaves", octaves);
shader.SetFloat("falloff", falloff);
shader.SetInt("normalize", System.Convert.ToInt32(normalize));
shader.SetFloat("noiseScale", noiseScale);
shader.SetVector("offset", noiseOffset);
}