tree sway and shadow improvements
[WindSway-HDRP.git] / Library / PackageCache / com.unity.postprocessing@2.1.2 / PostProcessing / Editor / Utils / PostProcessShaderIncludePath.cs
blob1640582dc55eec3fbf2ffcf47ee0d17be48c932d
1 using System.Linq;
2 using UnityEngine;
3 using System.IO;
5 namespace UnityEditor.Experimental.Rendering
7 static class PostProcessShaderIncludePath
9 #if UNITY_2018_1_OR_NEWER && !UNITY_2018_3_OR_NEWER
10 [ShaderIncludePath]
11 #endif
12 public static string[] GetPaths()
14 var srpMarker = Directory.GetFiles(Application.dataPath, "POSTFXMARKER", SearchOption.AllDirectories).FirstOrDefault();
15 var paths = new string[srpMarker == null ? 1 : 2];
16 var index = 0;
17 if (srpMarker != null)
19 paths[index] = Directory.GetParent(srpMarker).ToString();
20 index++;
22 paths[index] = Path.GetFullPath("Packages/com.unity.postprocessing");
23 return paths;