From f0c53a757f4b65ce7bbd031b51b27e5d076c5fac Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 31 May 2023 16:38:12 +0200 Subject: [PATCH] [unity] Fixed shader compile error occurring during build on Unity URP versions 12.x and 13.x. See related commit 2f1b0b8. (Not related to last commit 1fa6c2e.) --- .../Shaders/Include/Spine-Common-URP.hlsl | 4 ++++ 1 file changed, 4 insertions(+) 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()