Added stencil setup in UTSAPI;

Changed hair shadow length from screen space to world space;
This commit is contained in:
2025-05-24 00:05:50 +09:00
parent 5b2eb17148
commit 1a93e81edd
7 changed files with 193 additions and 41 deletions

View File

@@ -753,7 +753,6 @@ Shader "HDRP/Toon"
Pass Replace
}
HLSLPROGRAM
#pragma multi_compile _ DEBUG_DISPLAY
#pragma multi_compile _ LIGHTMAP_ON
@@ -811,8 +810,8 @@ Shader "HDRP/Toon"
#pragma shader_feature_local_fragment _ENABLE_FOG_ON_TRANSPARENT
#define PUNCTUAL_SHADOW_MEDIUM
#define DIRECTIONAL_SHADOW_MEDIUM
#define PUNCTUAL_SHADOW_LOW
#define DIRECTIONAL_SHADOW_LOW
#define AREA_SHADOW_MEDIUM
#ifndef SHADER_STAGE_FRAGMENT
@@ -929,7 +928,17 @@ Shader "HDRP/Toon"
Cull Front
ZWrite On
ZTest LEqual
ZTest LEqual
// // NOTE: We disable taa and tau for outline because it can't provide motion vector. This will reduce the ghosting but introduce some jittering.
// // Worth it to write motion vector for outline? It will introduce additional drawcall.
// Stencil
// {
// WriteMask 3
// Ref 0
// Comp Always
// Pass Replace
// }
HLSLPROGRAM