浏览代码

Proper include paths

/shader-library-include-paths
Peter Bay Bastian 7 年前
当前提交
1729e2ba
共有 4 个文件被更改,包括 20 次插入22 次删除
  1. 2
      ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs.meta
  2. 19
      ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs
  3. 21
      ScriptableRenderPipeline/HDRenderPipeline/Editor/HDDefaultShaderIncludes.cs
  4. 0
      /ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs.meta

2
ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs.meta


fileFormatVersion: 2
guid: e303d56aac48c1f4280b30146e9d0a63
guid: b40d30371f67ce54e89386dc076a895a
MonoImporter:
externalObjects: {}
serializedVersion: 2

19
ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs


using System.Linq;
using UnityEngine;
using System.IO;
namespace UnityEditor.Experimental.Rendering
{
static class CoreShaderIncludePaths
{
[ShaderIncludePath]
public static string[] GetPaths()
{
return new[]
{
"Assets/ScriptableRenderPipeline/ScriptableRenderPipeline/Core",
Path.GetFullPath("Packages/com.unity.render-pipelines.core")
};
}
}
}

21
ScriptableRenderPipeline/HDRenderPipeline/Editor/HDDefaultShaderIncludes.cs


using UnityEditor.Experimental.Rendering.HDPipeline;
namespace UnityEditor
{
internal static class HDDefaultShaderIncludes
{
static string s_RenderPipelinePath
{
get { return HDEditorUtils.GetScriptableRenderPipelinePath(); }
}
[ShaderIncludePath]
public static string[] GetPaths()
{
return new[]
{
s_RenderPipelinePath
};
}
}
}

/ScriptableRenderPipeline/HDRenderPipeline/Editor/HDDefaultShaderIncludes.cs.meta → /ScriptableRenderPipeline/Core/Editor/CoreShaderIncludePaths.cs.meta

正在加载...
取消
保存