Version: 2022.2
언어: 한국어

Mesh.RecalculateUVDistributionMetric

매뉴얼로 전환
public void RecalculateUVDistributionMetric (int uvSetIndex, float uvAreaThreshold);

파라미터

uvSetIndex The UV set index to set the UV distibution metric for. Use 0 for first index.
uvAreaThreshold The minimum UV area to consider. The default value is 1e-9f.

설명

Recalculates the UV distribution metric of the Mesh from the vertices and uv coordinates.

The UV distribution metric can be used to calculate the desired mipmap level based on the position of the camera. It's important to call this function after procedurally generating meshes that have textures that use Mip Map Streaming.

This function can also be used to update the UV distribution metric with an alternative uvAreaThreshold. The uvAreaThreshold can be used to ignore small UV areas from the UV distribution calculation; for example, you may wish to ignore a single texel colour used for a large triangle area. Unity will not consider the density of these areas when calculating mip selection, which may result in some colour tint due to lower mips being selected. The value depends on the texture resolution; for example, for a 256x256 texture, a single texel area would be (1/(256*256)).

See Also: Mip Map Streaming GetUVDistributionMetric, RecalculateUVDistributionMetrics.

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