浏览代码

Fixes for PR

/main
Matt Dean 6 年前
当前提交
c43790f0
共有 3 个文件被更改,包括 10 次插入2 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGraph/lightweightPBRExtraPasses.template
  2. 8
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGraph/lightweightPBRForwardPass.template
  3. 2
      ShaderGraph/com.unity.shadergraph/Editor/DefaultShaderIncludes.cs

2
ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGraph/lightweightPBRExtraPasses.template


HLSLPROGRAM
// Required to compile gles 2.0 with standard srp library
#pragma prefer_hlslcc gles
#pragma exclude_renderers d3d11_9x
#pragma target 2.0
#pragma vertex LightweightVertexMeta
#pragma fragment LightweightFragmentMeta

8
ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGraph/lightweightPBRForwardPass.template


o.fogFactorAndVertexLight = half4(fogFactor, vertexLight);
o.clipPos = clipPos;
o.shadowCoord = ComputeShadowCoord(o.clipPos);
#ifdef _SHADOWS_ENABLED
#if SHADOWS_SCREEN
o.shadowCoord = ComputeShadowCoord(clipPos);
#else
o.shadowCoord = TransformWorldToShadowCoord(lwWorldPos);
#endif
#endif
return o;
}

2
ShaderGraph/com.unity.shadergraph/Editor/DefaultShaderIncludes.cs


var path = GetRepositoryPath();
if (path == null)
return null;
path = Application.dataPath + "/DebugOutput";// Path.Combine(path, "DebugOutput");
path = Path.Combine(path, "DebugOutput");
return Directory.Exists(path) ? path : null;
}

正在加载...
取消
保存