浏览代码

Fix preprocessor

/main
sebastienlagarde 7 年前
当前提交
c8546dad
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 6
      com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Lit/LitShaderPreprocessor.cs

6
com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Lit/LitShaderPreprocessor.cs


{
protected ShaderKeyword m_WriteNormalBuffer;
LitShaderPreprocessor()
public LitShaderPreprocessor()
{
m_WriteNormalBuffer = new ShaderKeyword("WRITE_NORMAL_BUFFER");
}

{
// When we are full forward, we don't have depth prepass without writeNormalBuffer
if (hdrpAsset.renderPipelineSettings.supportOnlyForward && !inputData.shaderKeywordSet.IsEnabled(m_WriteNormalBuffer))
return true;
// When we are in deferred we don't have depth prepass with writeNormalBuffer
if (!hdrpAsset.renderPipelineSettings.supportOnlyForward && inputData.shaderKeywordSet.IsEnabled(m_WriteNormalBuffer))
return true;
}

正在加载...
取消
保存