Version: 2021.1
LanguageEnglish
  • C#

Texture.anisoLevel

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public int anisoLevel;

Description

Defines the anisotropic filtering level of the Texture.

Anisotropic filtering makes Textures look better when viewed at a shallow angle, but it can be slower to process on the GPU. Anisotropic filtering is commonly used to improve the appearance of floor, ground or road Textures.

The value range of this variable is 0 to 16. A value of 1 equals no filtering applied and 16 equals full filtering applied. As the value gets bigger, the Texture is clearer at shallow angles. Lower values mean the Texture is more blurry at shallow angles.

When the anisoLevel value is 0 and in Quality Settings, Anisotropic Filtering is set to Forced On, Unity does not apply anisotropic filtering. You can use this to disable anisotropic filtering for a Texture that would behave unpredictably with anisotropic filtering applied.

When the anisoLevel value is between 1 and 9, and in Quality Settings, Anisotropic Filtering is set to Forced On, Unity sets the anisoLevel to 9. If the value is higher than 9, Unity clamps it between 9 and 16.

If you use the Metal, Vulkan and OpenGL APIs, you can control mipmap filtering and anisotropic filtering levels independently. When you enable anisotropic filtering in any other graphics APIs, Unity also enables trilinear filtering.

See Also: Texture assets.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961