Terrain.heightmapMaximumLOD 高度图最大LOD

var heightmapMaximumLOD : int

Description描述

Lets you essentially lower the heightmap resolution used for rendering

让你在实质上降低用于渲染高度图的解析度。

This can be used on low end cards to never display the highest lod terrain. A value of 0 means always showing highest detail. A value of 1 means the triangle count will be reduced to 1/4th. The heightmap resolution will be halved for width and height.

这个属性用于低端的显卡使其永远不会显示最高LOD地形。0值表示总是显示最高细节。1值表示三角形数量将会降低四分之一。高度图的解析度将是高度和宽度的一半。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		Terrain.activeTerrain.heightmapMaximumLOD = 1;
	}
}
function Start () {
	Terrain.activeTerrain.heightmapMaximumLOD = 1;
}
Page last updated: 2011-4-1