TerrainData.SetDetailResolution 设置细节分辨率
function SetDetailResolution (detailResolution : int, resolutionPerPatch : int) : void
Description描述
/detailResolution/ specifies the number of pixels in the detail resolution map. A larger detailResolution, leads to more accurate detail object painting.
detailResolution指定细节分辨率贴图的像素数,一个较大的细节分辨率,意味着更多精细的物体绘制。
/resolutionPerPatch/ specifies the size in pixels of each individually rendered detail patch. A larger number reduces draw calls, but might increase triangle count since detail patches are culled on a per batch basis. A recommended value is 16. If you use a very large detail object distance and your grass is very sparse, it makes sense to increase the value.
resolutionPerPatch指定每个单独渲染的细节面片的像素大小。较大的数减少绘制调用,但可能会增加三角形数,因为细节面片是在每一批基础上被挑选。推荐值是16。如果使用一个非常大的细节物体距离并且草很稀疏,可以合理的增大这个值。