docs.unity3d.com
    Show / Hide Table of Contents

    Interface IPaintContextRender

    An interface that allows rendering of terrain-brushes for both preview purposes and to modify the terrain. NOTE: This uses the GPU so material properties will also need to be dealt with prior to rendering.

    Inherited Members
    IDisposable.Dispose()
    Namespace: UnityEditor.TerrainTools
    Syntax
    public interface IPaintContextRender : IDisposable

    Methods

    RenderBrush(PaintContext, Material, Int32)

    Renders the terrain-brush using the specified material/pass to the paint-context provided.

    Declaration
    void RenderBrush(PaintContext paintContext, Material material, int pass)
    Parameters
    Type Name Description
    PaintContext paintContext

    The paint-context to modify.

    Material material

    The material to use when rendering to the terrain.

    Int32 pass

    The pass on the material to use.

    SetupTerrainToolMaterialProperties(PaintContext, BrushTransform, Material)

    Sets up the material properties required when rendering a terrain-brush.

    Declaration
    void SetupTerrainToolMaterialProperties(PaintContext paintContext, BrushTransform brushTransform, Material material)
    Parameters
    Type Name Description
    PaintContext paintContext

    The paint-context to use.

    BrushTransform brushTransform

    The brush-transform to be rendered.

    Material material

    The material whose properties are to be initialised.

    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Friday, November 3, 2023