浏览代码

Merge pull request #598 from Unity-Technologies/Add-ColorMask-0-to-depth-and-shadow-pass

HDRenderPipeline: Add ColorMask0 to depth and shadow pass
/main
GitHub 7 年前
当前提交
3dfc1b66
共有 5 个文件被更改,包括 33 次插入0 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/LayeredLit/LayeredLit.shader
  2. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/LayeredLit/LayeredLitTessellation.shader
  3. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.shader
  4. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitTessellation.shader
  5. 9
      ScriptableRenderPipeline/Core/ShaderLibrary/Macros.hlsl.meta

6
ScriptableRenderPipeline/HDRenderPipeline/Material/LayeredLit/LayeredLit.shader


ZWrite On
ZTest LEqual
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM
#define SHADERPASS SHADERPASS_SHADOWS

Cull[_CullMode]
ZWrite On
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM

6
ScriptableRenderPipeline/HDRenderPipeline/Material/LayeredLit/LayeredLitTessellation.shader


ZWrite On
ZTest LEqual
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM
#pragma hull Hull

Cull[_CullMode]
ZWrite On
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM

6
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.shader


ZWrite On
ZTest LEqual
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM
#define SHADERPASS SHADERPASS_SHADOWS

Cull[_CullMode]
ZWrite On
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM

6
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitTessellation.shader


ZWrite On
ZTest LEqual
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM
#pragma hull Hull

Cull[_CullMode]
ZWrite On
// When alpha test is enabled, we should not write into the color buffer
ColorMask 0
HLSLPROGRAM

9
ScriptableRenderPipeline/Core/ShaderLibrary/Macros.hlsl.meta


fileFormatVersion: 2
guid: 6300b0e79f5d15e499b9d6b5d23ca01b
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存