Skip to content

Commit fa2ff6e

Browse files
Added DOTS_INSTANCING_ON variants to the "HDRP/Decal" shader to support mesh decals using it in the Hybrid Renderer. (#4284)
1 parent a93e898 commit fa2ff6e

File tree

1 file changed

+2
-0
lines changed
  • com.unity.render-pipelines.high-definition/Runtime/Material/Decal

1 file changed

+2
-0
lines changed

com.unity.render-pipelines.high-definition/Runtime/Material/Decal/Decal.shader

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Shader "HDRP/Decal"
212212
HLSLPROGRAM
213213

214214
#pragma multi_compile_fragment DECALS_3RT DECALS_4RT
215+
#pragma multi_compile _ DOTS_INSTANCING_ON
215216
// enable dithering LOD crossfade
216217
#pragma multi_compile _ LOD_FADE_CROSSFADE
217218

@@ -246,6 +247,7 @@ Shader "HDRP/Decal"
246247
Blend 0 SrcAlpha One
247248

248249
HLSLPROGRAM
250+
#pragma multi_compile _ DOTS_INSTANCING_ON
249251
// enable dithering LOD crossfade
250252
#pragma multi_compile _ LOD_FADE_CROSSFADE
251253

0 commit comments

Comments
 (0)