diff --git a/Shaders/ShaderLibrary - DepthOnlyPass.hlsl b/Shaders/ShaderLibrary - DepthOnlyPass.hlsl index f3fee58..5df0d79 100644 --- a/Shaders/ShaderLibrary - DepthOnlyPass.hlsl +++ b/Shaders/ShaderLibrary - DepthOnlyPass.hlsl @@ -7,6 +7,10 @@ #endif +#if UNITY_VERSION >= 201930 #include "Packages/com.unity.render-pipelines.universal/Shaders/DepthOnlyPass.hlsl" +#else +#include "Packages/com.unity.render-pipelines.lightweight/Shaders/DepthOnlyPass.hlsl" +#endif #endif diff --git a/Shaders/ShaderLibrary - Input.hlsl b/Shaders/ShaderLibrary - Input.hlsl index 57df698..f3b5f26 100644 --- a/Shaders/ShaderLibrary - Input.hlsl +++ b/Shaders/ShaderLibrary - Input.hlsl @@ -1,7 +1,11 @@ #ifndef LWRPSHADRES_SHADERLIBRARY_INPUT #define LWRPSHADRES_SHADERLIBRARY_INPUT +#if UNITY_VERSION >= 201930 #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" +#else +#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl" +#endif #ifndef NO_MAIN_TEXTURE diff --git a/Shaders/ShaderLibrary - Lighting.hlsl b/Shaders/ShaderLibrary - Lighting.hlsl index 2307711..9418748 100644 --- a/Shaders/ShaderLibrary - Lighting.hlsl +++ b/Shaders/ShaderLibrary - Lighting.hlsl @@ -1,7 +1,11 @@ #ifndef LWRPSHADRES_SHADERLIBRARY_LIGHTING #define LWRPSHADRES_SHADERLIBRARY_LIGHTING +#if UNITY_VERSION >= 201930 #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl" +#else +#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Lighting.hlsl" +#endif float4 ComputeShadowCoord(float3 ws, float4 cs) { diff --git a/Shaders/ShaderLibrary - ShadowPass.hlsl b/Shaders/ShaderLibrary - ShadowPass.hlsl index 2ce04e6..324eac8 100644 --- a/Shaders/ShaderLibrary - ShadowPass.hlsl +++ b/Shaders/ShaderLibrary - ShadowPass.hlsl @@ -7,6 +7,10 @@ #endif +#if UNITY_VERSION >= 201930 #include "Packages/com.unity.render-pipelines.universal/Shaders/ShadowCasterPass.hlsl" +#else +#include "Packages/com.unity.render-pipelines.lightweight/Shaders/ShadowCasterPass.hlsl" +#endif #endif