From 432edc91a3a0e10b49ad79d2c404d2e896c671b9 Mon Sep 17 00:00:00 2001 From: slunity Date: Thu, 19 Nov 2020 23:16:43 -0500 Subject: [PATCH 1/2] AxF: Fix missing alpha blend state properties and update stencil properties. --- .../Runtime/Material/AxF/AxF.shader | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader index 482eb9298eb..36e7e1c361a 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/AxF/AxF.shader @@ -96,19 +96,21 @@ Shader "HDRP/AxF" // Stencil state // Forward [HideInInspector] _StencilRef("_StencilRef", Int) = 0 // StencilUsage.Clear - [HideInInspector] _StencilWriteMask("_StencilWriteMask", Int) = 3 // StencilUsage.RequiresDeferredLighting | StencilUsage.SubsurfaceScattering + [HideInInspector] _StencilWriteMask("_StencilWriteMask", Int) = 6 // StencilUsage.RequiresDeferredLighting | StencilUsage.SubsurfaceScattering // Depth prepass - [HideInInspector] _StencilRefDepth("_StencilRefDepth", Int) = 16 // DecalsForwardOutputNormalBuffer - [HideInInspector] _StencilWriteMaskDepth("_StencilWriteMaskDepth", Int) = 48 // DoesntReceiveSSR | DecalsForwardOutputNormalBuffer + [HideInInspector] _StencilRefDepth("_StencilRefDepth", Int) = 0 // StencilUsage.Clear + [HideInInspector] _StencilWriteMaskDepth("_StencilWriteMaskDepth", Int) = 8 // StencilUsage.TraceReflectionRay (8) // Motion vector pass - [HideInInspector] _StencilRefMV("_StencilRefMV", Int) = 32 // StencilUsage.ObjectMotionVector - [HideInInspector] _StencilWriteMaskMV("_StencilWriteMaskMV", Int) = 32 // StencilUsage.ObjectMotionVector + [HideInInspector] _StencilRefMV("_StencilRefMV", Int) = 32 // StencilUsage.ObjectMotionVector (32) + [HideInInspector] _StencilWriteMaskMV("_StencilWriteMaskMV", Int) = 40 // StencilUsage.ObjectMotionVector (32) | StencilUsage.TraceReflectionRay (8) as it can be a prepass // Blending state [HideInInspector] _SurfaceType("__surfacetype", Float) = 0.0 [HideInInspector] _BlendMode("__blendmode", Float) = 0.0 [HideInInspector] _SrcBlend("__src", Float) = 1.0 [HideInInspector] _DstBlend("__dst", Float) = 0.0 + [HideInInspector] _AlphaSrcBlend("__alphaSrc", Float) = 1.0 + [HideInInspector] _AlphaDstBlend("__alphaDst", Float) = 0.0 [HideInInspector][ToggleUI]_AlphaToMaskInspectorValue("_AlphaToMaskInspectorValue", Float) = 0 // Property used to save the alpha to mask state in the inspector [HideInInspector][ToggleUI]_AlphaToMask("__alphaToMask", Float) = 0 [HideInInspector][ToggleUI] _ZWrite("__zw", Float) = 1.0 From b983410d1ebb5d5e5a4b583c7626b0aa8d246e3c Mon Sep 17 00:00:00 2001 From: slunity Date: Fri, 20 Nov 2020 14:04:09 -0500 Subject: [PATCH 2/2] Add changelog entry. --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 9a02fe28686..29131c12716 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Fixed probe volumes debug views. - Fixed XR single-pass rendering with legacy shaders using unity_StereoWorldSpaceCameraPos. +- AxF: Fix missing alpha blend state properties and update default stencil properties ## [10.2.0] - 2020-10-19