うにてぃブログ

主にUnityとC#に関する記事を書いていきます

【Unity】Format が ASTC の Texture を Mask に利用するとノイズが発生する

ATSC はテクスチャのサイズが小さくなるため、よく利用される Format ですが、これを Mask に利用すると ノイズが発生するようです

Unity の Issue Trackerでも同じ問題が上がっていますが

Some texture compression will leave artifacts in some pixels. As we are clipping in the shader we clip fragments when alpha is close to 0 (< 1/256 here). There is not much we can do to correct this. Turning off the texture compression or finding a different algorithm is the correct solution.

とあるように現状解決策が無いようなので、フォーマットを変更するか

テクスチャの設定で Alpha Source : From Gray Scaleもしくは Alpha is Transparency : false に設定を変更すると多少改善されるようです