Skip to content

HDRP Terrain Detail #24

@tgaldi

Description

@tgaldi

The new HDRP pipeline currently only seems to support instance meshes for terrain details. The following needs to be added to HEU_TerrainUtility.ApplyDetailLayers():

#if UNITY_2021_2_OR_NEWER
            if( detailPrototype.usePrototypeMesh )
                detailPrototype.useInstancing = true;
#endif

There's also a new property on detail prototypes that will need to be added to HEU_DetailPrototype

        // Summary:
        //     Controls how far away detail objects are from the edge of the hole area.
        public float holeEdgePadding { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions