기술 자료

Unity Engine

Unity Engine

enableHeightmapLODFrustumCulling

Controls frustum culling for the terrain heightmap LOD system.
읽는 시간 1분최근 업데이트: 한 달 전

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; }}