Class HydraulicEroder | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class HydraulicEroder

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

    Fields

    m_ErosionSettings

    Declaration
    [SerializeField]
    public HydraulicErosionSettings m_ErosionSettings
    Field Value
    Type Description
    HydraulicErosionSettings

    Properties

    inputTextures

    Declaration
    public Dictionary<string, RenderTexture> inputTextures { get; set; }
    Property Value
    Type Description
    Dictionary<String, RenderTexture>
    Implements
    ITerrainEroder.inputTextures

    outputTextures

    Declaration
    public Dictionary<string, RenderTexture> outputTextures { get; }
    Property Value
    Type Description
    Dictionary<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
    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
    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

    ResetToolVar()

    Declaration
    public void ResetToolVar()
    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