enableHeightmapLODFrustumCulling
Controls frustum culling for the terrain heightmap LOD system.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public bool enableHeightmapLODFrustumCulling { get; set; }
Remarks
When enabled (the default), terrain patches outside the camera frustum are simplified aggressively, which reduces heightmap tessellation cost.
When disabled, terrain is tessellated based on camera distance and pixel error only, regardless of whether it is visible.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { // Note: disabling this increases heightmap tessellation cost for off-screen terrain. foreach (var terrain in Terrain.activeTerrains) terrain.enableHeightmapLODFrustumCulling = false; }}