Terrain.heightmapPixelError 高度图像素误差

var heightmapPixelError : float

Description描述

An approximation of how many pixels the terrain will pop in the worst case when switching lod.

在切换lod时,大约有多少像素,地形将出现误差的情况。

A higher value reduces the number of polygons drawn.

较高的值会减少多边形的绘制数量。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Start() {

		Terrain.activeTerrain.heightmapPixelError = 10;

	}

}
function Start () {

	Terrain.activeTerrain.heightmapPixelError = 10;

}
Page last updated: 2011-4-1