diff options
| author | yum <yum.food.vr@gmail.com> | 2025-01-04 19:18:35 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-01-04 19:18:35 -0800 |
| commit | ab441140208d6dd8317f328f40a25c6054f1a304 (patch) | |
| tree | f40c28d0b520cbe8bb5c2d1a7bccc07c35780bfc /tooner_lighting.cginc | |
| parent | 5d58e59886b8c85dfb4c7e4d7b3bd6f14736be31 (diff) | |
Fix shadow caster pass
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index efb3336..e088c17 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -1583,6 +1583,8 @@ float4 effect(inout v2f i, out float depth) float4 clip_pos = mul(UNITY_MATRIX_VP, float4(i.worldPos, 1.0)); depth = clip_pos.z / clip_pos.w; } +#else + depth = 0; #endif const float3 view_dir = normalize(_WorldSpaceCameraPos.xyz - i.worldPos); const float3 view_dir_c = normalize(i.centerCamPos - i.worldPos); |
