Class HydraulicEroder | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class HydraulicEroder

    Inheritance
    System.Object
    HydraulicEroder
    Namespace: Erosion
    Syntax
    [Serializable]
    public class HydraulicEroder : ITerrainEroder

    Fields

    m_ErosionSettings

    Declaration
    public HydraulicErosionSettings m_ErosionSettings
    Field Value
    Type Description
    HydraulicErosionSettings

    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
    ITerrainEroder.inputTextures

    outputTextures

    Declaration
    public Dictionary<string, RenderTexture> outputTextures { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, RenderTexture>
    Implements
    ITerrainEroder.outputTextures

    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
    ITerrainEroder.ErodeHeightmap(Vector3, Rect, Vector2, Boolean)

    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
    public void OnEnable()
    Implements
    ITerrainEroder.OnEnable()

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023