diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-15 15:03:22 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-15 15:03:22 -0700 |
| commit | 478cb4e07622488915132c8de2f52dc5c19bb6c0 (patch) | |
| tree | b2f88ee10edc9c983fc2ea30ed9e16bdd38c9737 /yum_lighting.cginc | |
| parent | b57eb0894b8abef05db7648addf089cdd3773b54 (diff) | |
Touch up shadows
Diffstat (limited to 'yum_lighting.cginc')
| -rw-r--r-- | yum_lighting.cginc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yum_lighting.cginc b/yum_lighting.cginc index a77114f..af082b0 100644 --- a/yum_lighting.cginc +++ b/yum_lighting.cginc @@ -5,6 +5,7 @@ #include "AutoLight.cginc" #include "UnityPBSLighting.cginc" #include "UnityLightingCommon.cginc" +#include "UnityStandardCoreMinimal.cginc" #include "features.cginc" #include "LightVolumes.cginc" @@ -95,7 +96,12 @@ float getShadowAttenuation(v2f i) float shadow = 1; attenuation = 1; #endif - attenuation *= lerp(1, shadow, _Shadow_Strength); + + attenuation *= shadow; + + GetBakedAttenuation(attenuation, i.uv01.zw, i.worldPos); + + attenuation = lerp(1, attenuation, _Shadow_Strength); return attenuation; } |
