2020-07-02から1日間の記事一覧
Billboard (LookAt camera) vert https://forum.unity.com/threads/standard-surface-shader-billboard.513060/ void vert(inout appdata_full v, out Input o) { UNITY_INITIALIZE_OUTPUT(Input, o); // apply object scale v.vertex.xy *= float2(length(u…
[Unity5]破綻しない半透明描画を行う | notargs.com ディザリングはUnity5標準の影の描画でも使われているため、デフォルトで「_DitherMaskLOD」という名前の3Dテクスチャが定義されています。 x/yにスクリーン座標、zにアルファ値を指定することで、そのピ…