Class HydraulicEroder
Inheritance
System.Object
HydraulicEroder
Syntax
[Serializable]
public class HydraulicEroder : ITerrainEroder
Fields
m_ErosionSettings
Declaration
public HydraulicErosionSettings m_ErosionSettings
Field Value
m_HeightScaleCurve
Declaration
public AnimationCurve m_HeightScaleCurve
Field Value
Type |
Description |
AnimationCurve |
|
Properties
inputTextures
Declaration
public Dictionary<string, RenderTexture> inputTextures { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, RenderTexture> |
|
Implements
outputTextures
Declaration
public Dictionary<string, RenderTexture> outputTextures { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, RenderTexture> |
|
Implements
Methods
ErodeHeightmap(Vector3, Rect, Vector2, Boolean)
Declaration
public void ErodeHeightmap(Vector3 terrainDimensions, Rect domainRect, Vector2 texelSize, bool invertEffect = false)
Parameters
Type |
Name |
Description |
Vector3 |
terrainDimensions |
|
Rect |
domainRect |
|
Vector2 |
texelSize |
|
System.Boolean |
invertEffect |
|
Implements
GetShaderParams(ref Int32, ref RenderTexture)
Declaration
public void GetShaderParams(ref int pass, ref RenderTexture maskRT)
Parameters
Type |
Name |
Description |
System.Int32 |
pass |
|
RenderTexture |
maskRT |
|
OnEnable()
Declaration
Implements
OnInspectorGUI(Terrain, IOnInspectorGUI)
Declaration
public void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
IOnInspectorGUI |
editContext |
|
OnMaterialInspectorGUI(Terrain, IOnInspectorGUI)
Declaration
public void OnMaterialInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
Parameters
Type |
Name |
Description |
Terrain |
terrain |
|
IOnInspectorGUI |
editContext |
|