diff --git a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl b/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl index d40855e2c..81f9f9dd9 100644 --- a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl +++ b/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl @@ -14,7 +14,11 @@ #ifdef _LIGHT_LAYERS uint GetMeshRenderingLayerBackwardsCompatible() { + #if IS_URP_14_OR_NEWER return GetMeshRenderingLayer(); + #else + return GetMeshRenderingLightLayer(); + #endif } #else uint GetMeshRenderingLayerBackwardsCompatible()