Skip to content

Commit 0104bdd

Browse files
author
Chris Tchou
committed
Fix for 1292501
1 parent 84d0230 commit 0104bdd

File tree

1 file changed

+3
-0
lines changed
  • com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph

1 file changed

+3
-0
lines changed

com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDShaderPasses.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ static public PassDescriptor GenerateShadowCaster(bool supportLighting)
170170
BlockFields.SurfaceDescription.AlphaClipThreshold,
171171
HDBlockFields.SurfaceDescription.AlphaClipThresholdShadow,
172172
HDBlockFields.SurfaceDescription.DepthOffset,
173+
HDBlockFields.SurfaceDescription.DiffusionProfileHash // not used, but keeps the UnityPerMaterial cbuffer identical
173174
},
174175

175176
// Collections
@@ -547,13 +548,15 @@ public static PassDescriptor GenerateTransparentDepthPrepass(bool supportLightin
547548
BlockFields.SurfaceDescription.NormalWS,
548549
BlockFields.SurfaceDescription.NormalOS,
549550
BlockFields.SurfaceDescription.Smoothness,
551+
HDBlockFields.SurfaceDescription.DiffusionProfileHash // not used, but keeps the UnityPerMaterial cbuffer identical
550552
} :
551553
new BlockFieldDescriptor[]
552554
{
553555
BlockFields.SurfaceDescription.Alpha,
554556
HDBlockFields.SurfaceDescription.AlphaClipThresholdDepthPrepass,
555557
BlockFields.SurfaceDescription.AlphaClipThreshold,
556558
HDBlockFields.SurfaceDescription.DepthOffset,
559+
HDBlockFields.SurfaceDescription.DiffusionProfileHash // not used, but keeps the UnityPerMaterial cbuffer identical
557560
},
558561

559562
// Collections

0 commit comments

Comments
 (0)