Terrain
- activeTerrain
- AddTreeInstance
- basemapDistance
- castShadows
- CreateTerrainGameObject
- detailObjectDensity
- detailObjectDistance
- editorRenderFlags
- Flush
- GetPosition
- heightmapMaximumLOD
- heightmapPixelError
- lightmapIndex
- SampleHeight
- SetNeighbors
- terrainData
- treeBillboardDistance
- treeCrossFadeLength
- treeDistance
- treeMaximumFullLODCount
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;
}
最后修改:2011年4月1日 Friday 18:16