コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】failed to open source file: 'PostProcessing/Shaders/StdLib.hlsl'

概要

failed to open source file: 'PostProcessing/Shaders/StdLib.hlsl'

シェーダで上記のエラーが発生した場合は

 #include "PostProcessing/Shaders/StdLib.hlsl"

この include の記述を

#include "Packages/com.unity.postprocessing/PostProcessing/Shaders/StdLib.hlsl"

このように変更すると直ります

参考サイト様

https://github.com/Unity-Technologies/PostProcessing/issues/687