Skip to content

Commit 3e97cac

Browse files
Add DOTS_INSTANCING_ON keyword to decal shader graphs. (#2343)
1 parent a6ef883 commit 3e97cac

File tree

1 file changed

+4
-1
lines changed
  • com.unity.render-pipelines.high-definition/Editor/Material/Decal/ShaderGraph

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override void GetActiveBlocks(ref TargetActiveBlockContext context)
108108
context.AddBlock(BlockFields.VertexDescription.Position);
109109
context.AddBlock(BlockFields.VertexDescription.Normal);
110110
context.AddBlock(BlockFields.VertexDescription.Tangent);
111-
111+
112112
// Decal
113113
context.AddBlock(BlockFields.SurfaceDescription.BaseColor);
114114
context.AddBlock(BlockFields.SurfaceDescription.Alpha);
@@ -446,6 +446,9 @@ static class DecalPragmas
446446
{
447447
{ CorePragmas.Basic },
448448
{ Pragma.MultiCompileInstancing },
449+
#if ENABLE_HYBRID_RENDERER_V2
450+
{ Pragma.DOTSInstancing },
451+
#endif
449452
};
450453
}
451454
#endregion

0 commit comments

Comments
 (0)