Shader error: undefined punctual shadow filter algorithm

Having a shader error after #include "Packages/com.unity.render-pipelines.high-definition/Runtime/Lighting/Lighting.hlsl"

It says in the console window that Shader error in 'My Shader': "Undefined punctual shadow filter algorithm" at My Project Path/Library/PackageCache/com.unity.render-pipelines.high-definition@15.0.4/Runtime/Lighting/Shadow/HDShadowAlgorithms.hlsl(47)

Have no idea what the cause of this might be. Any help please.

I know this is a bit old, but I just encountered this error with a shader for leaves that came with some assets I bought on the Asset Store. I couldn’t really find anything about it besides this post. But I ended up solving it by adding the following to the shader. I hope this can help anyone else having this problem.

#define SHADOWS_SHADOWMASK
#define SHADOW_LOW
#define SHADOW_MEDIUM
#define SHADOW_HIGH 

I have the same issue since upgrading to 2022.2.9. It appears to be due to NatureManufacture shaders from the asset store. They work fine for LTS versions of Unity, though.