24 lines
432 B
C#
24 lines
432 B
C#
#if UNITY_EDITOR
|
|
using UnityEngine;
|
|
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
using UnityEditor.Experimental.TerrainAPI;
|
|
#endif
|
|
|
|
namespace Gaia
|
|
{
|
|
public class NoiseComponent : MonoBehaviour
|
|
{
|
|
public Material mat;
|
|
public NoiseSettings noiseSettings;
|
|
|
|
void Update()
|
|
{
|
|
if(mat != null)
|
|
{
|
|
noiseSettings.SetupMaterial( mat );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif |