Skip to content

Commit

Permalink
[2023.2][URP] Fixing an issue with Alpha clipping and Depth Priming (…
Browse files Browse the repository at this point in the history
…UUM-64447)

Fixes UUM-64447.
The issue was that the `_ALPHATEST_ON` keyword needs to be available in both vertex and fragment shaders in order to check if UV (TEXCOORD1) is needed or not.
  • Loading branch information
svc-reach-platform-support authored and Evergreen committed Feb 23, 2024
1 parent ace41b8 commit f5adf46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ Shader "Universal Render Pipeline/Complex Lit"
#pragma shader_feature_local _NORMALMAP
#pragma shader_feature_local _PARALLAXMAP
#pragma shader_feature_local _ _DETAIL_MULX2 _DETAIL_SCALED
#pragma shader_feature_local_fragment _ALPHATEST_ON
#pragma shader_feature_local _ALPHATEST_ON
#pragma shader_feature_local_fragment _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A

// -------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Shader "Universal Render Pipeline/Lit"
#pragma shader_feature_local _NORMALMAP
#pragma shader_feature_local _PARALLAXMAP
#pragma shader_feature_local _ _DETAIL_MULX2 _DETAIL_SCALED
#pragma shader_feature_local_fragment _ALPHATEST_ON
#pragma shader_feature_local _ALPHATEST_ON
#pragma shader_feature_local_fragment _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A

// -------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Shader "Universal Render Pipeline/Simple Lit"
// -------------------------------------
// Material Keywords
#pragma shader_feature_local _NORMALMAP
#pragma shader_feature_local_fragment _ALPHATEST_ON
#pragma shader_feature_local _ALPHATEST_ON
#pragma shader_feature_local_fragment _GLOSSINESS_FROM_BASE_ALPHA

// -------------------------------------
Expand Down

0 comments on commit f5adf46

Please sign in to comment.