Texture.anisoLevel 各向异性等级
var anisoLevel : int
Description描述
Anisotropic filtering level of the texture.
贴图的各向异性过滤等级
Anisotropic filtering makes textures look better when viewed at a shallow angle, but comes at a performance cost in the graphics hardware. Usually you use it on floor, ground or road textures to make them look better.
各向异性过滤使贴图在一个浅的角度查看时,看起来效果更好,但是会增加图形硬件的性能开销,通常您使用它对地板、 地面或道路的贴图使其看起来更好。
The value range of this variable goes from 1 to 9, where 1 equals no filtering applied and 9 equals full filtering applied. As the value gets bigger, the texture is clearer at shallow angles. Lower values mean the texture will be more blurry at shallow angles.
此变量的值的范围从 1 - 9 ,其中 1 等于没有过滤而9 等于完全过滤。值越大,贴图在浅角度看时显得更清晰。较低的值表示贴图在浅角度显得更模糊。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
renderer.material.mainTexture.anisoLevel = 2;
}
}
renderer.material.mainTexture.anisoLevel = 2;
最后修改:2010年12月14日 Tuesday 17:58