2019-09-12から1日間の記事一覧
はじめに 「UnityDitheredShadows」を Unity プロジェクトに導入することで 影にディザリングを適用できるようになります 使用例 適用前 適用後 使い方 シーンに配置されているカメラに「DitheredShadows」をアタッチして 各種パラメータを設定します
はじめに https://github.com/avseoul/FakeVolumetricLight 「FakeVolumetricLight」を Unity プロジェクトに導入することで 疑似ボリュームライトを使用できるようになります 使用例 使い方 マテリアルの Shader を「Custom/FakeVolumetricLightShader」に…
はじめに 「Unity Material Instanced Properties Editor」を Unity プロジェクトに導入することで Inspector で表示されていないマテリアルのパラメータを調整できるようになります 使い方 「MaterialInstancedProperties」をゲームオブジェクトにアタッチ…
はじめに 「UniScript」を Unity プロジェクトに導入することで C# のコードをインタープリタ方式で実行できるようになります 使用例1 using Slowsharp; using UnityEngine; public class Example : MonoBehaviour { private void Start() { // C# のコード…
ソースコード using System.Collections.Generic; using System.Linq; public static class IListExt { public static void Deconstruct<T> ( this IList<T> self, out T first, out IList<T> rest ) { first = self.Count > 0 ? self[ 0 ] : default; rest = self.Sk</t></t></t>…
ソースコード using System; using System.Collections.Generic; public static class IEnumerableExt { public static IEnumerable<(int index, T value)> WithIndex<T> ( this IEnumerable<T> source ) { if ( source == null ) { throw new ArgumentNullExcepti</t></t>…