From 53d660441ff23821e877e134b34ad797cfc2eba6 Mon Sep 17 00:00:00 2001 From: Andrew Saraev Date: Thu, 22 Apr 2021 16:32:36 +0100 Subject: [PATCH] Added DOTS_INSTANCING_ON variants to the "HDRP/Decal" shader to support mesh decals using it in the Hybrid Renderer. --- .../Runtime/Material/Decal/Decal.shader | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/Decal.shader b/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/Decal.shader index 2d02ba1709d..a753a256183 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/Decal.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/Decal.shader @@ -212,6 +212,7 @@ Shader "HDRP/Decal" HLSLPROGRAM #pragma multi_compile_fragment DECALS_3RT DECALS_4RT + #pragma multi_compile _ DOTS_INSTANCING_ON // enable dithering LOD crossfade #pragma multi_compile _ LOD_FADE_CROSSFADE @@ -246,6 +247,7 @@ Shader "HDRP/Decal" Blend 0 SrcAlpha One HLSLPROGRAM + #pragma multi_compile _ DOTS_INSTANCING_ON // enable dithering LOD crossfade #pragma multi_compile _ LOD_FADE_CROSSFADE