Graphics, Programming, Unity, Tutorial, Technology.
HLSL files to be safe. Clip in the Shadow Caster. After all this cleanup, your shader should still work the same. Let’s finally add clipping to the shadow caster. First, in the .shader file, add the _ALPHA_CUTOUT shader feature to the shadow caster pass. In MyLitShadowCasterPass.hlsl, add #include