2019-11-01から1ヶ月間の記事一覧

Depth Fadeで背面にある物体との距離を取得する

Depth Fadeと呼ばれている手法について紹介します。 Unity Products:Amplify Shader Editor/Depth Fade - Amplify Creations Wiki [https://wiki.unrealengine.com/Visual_Effects:Lesson_02:Using_Depth_Fade:title] こちらのチュートリアルに大変お世話に…

PostProcessingStack v2にて、各種設定をランタイムで変更する

[SerializeField] private PostProcessVolume _ppVolume; void Start() { Bloom bloom; _ppVolume.profile.TryGetSettings(out bloom); bloom.threshold.value = 3f; }

数式をグラフ化する。Grapher(macアプリ) と desmos(webサービス)

最近知りましたが、macには標準でグラフを描くアプリが入っていました。 これでガウス関数を作ってみます。 mac標準アプリのGrapher パラメータ化した値を操作して動かす事も出来る。 どんなパラメーターになるのか理解するのに役立ちそう。 しかし ちょっと…

PostProcessing Stackのカスタムエフェクトで解像度を下げる (ダウンサンプリングする) 方法

参考にしたソース https://github.com/Unity-Technologies/PostProcessing/blob/v2/PostProcessing/Runtime/Effects/ScalableAO.cs // AO buffer var rtMask = ShaderIDs.OcclusionTexture1; int scaledWidth = context.width / ts; int scaledHeight = cont…

PostProcessing Stack v2でカスタムエフェクトを作る

公式マニュアルはhttps://docs.unity3d.com/Packages/com.unity.postprocessing@2.2/manual/Writing-Custom-Effects.html 公式 APIドキュメント https://docs.unity3d.com/Packages/com.unity.postprocessing@2.2/api/ どちらもバージョンに注意。 使い方は…