Added dots instancing support;

Fixed the problem that shader can compile when using emission color map;
This commit is contained in:
2025-09-01 01:15:57 +09:00
parent e35650f052
commit bcba75a7d6
6 changed files with 18 additions and 8 deletions

View File

@@ -283,6 +283,8 @@ Shader "HDRP/Toon"
//-------------------------------------------------------------------------------------
// Variant
//-------------------------------------------------------------------------------------
#pragma multi_compile _ DOTS_INSTANCING_ON
#pragma shader_feature_local _DOUBLESIDED_ON
#pragma shader_feature_local _NORMALMAP_TANGENT_SPACE
@@ -394,7 +396,6 @@ Shader "HDRP/Toon"
#pragma only_renderers d3d11 playstation xboxone xboxseries vulkan metal switch
#pragma instancing_options renderinglayer
#pragma multi_compile _ DOTS_INSTANCING_ON
#pragma multi_compile _ DEBUG_DISPLAY
@@ -587,6 +588,7 @@ Shader "HDRP/Toon"
ZWrite On
HLSLPROGRAM
#pragma multi_compile _ WRITE_NORMAL_BUFFER
#pragma multi_compile _ WRITE_MSAA_DEPTH
@@ -779,6 +781,8 @@ Shader "HDRP/Toon"
}
HLSLPROGRAM
#pragma multi_compile _ DEBUG_DISPLAY
#pragma multi_compile _ LIGHTMAP_ON
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
@@ -838,8 +842,8 @@ Shader "HDRP/Toon"
#pragma shader_feature_local _DISABLE_SSR_TRANSPARENT
#define PUNCTUAL_SHADOW_LOW
#define DIRECTIONAL_SHADOW_LOW
#define PUNCTUAL_SHADOW_MEDIUM
#define DIRECTIONAL_SHADOW_MEDIUM
#define AREA_SHADOW_MEDIUM
#ifndef SHADER_STAGE_FRAGMENT