enableHeightmapLODFrustumCulling
Controls frustum culling for the terrain heightmap LOD system.
阅读时间1 分钟最后更新于 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; }}