Browse Source

[unity] Fixed URP shader compile error with URP 17.1. Closes #2878.

Harald Csaszar 3 weeks ago
parent
commit
2e9fcc6fb0

+ 1 - 1
spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Common-URP.hlsl

@@ -1,7 +1,7 @@
 #ifndef SPINE_COMMON_URP_INCLUDED
 #define SPINE_COMMON_URP_INCLUDED
 
-#ifdef USE_FORWARD_PLUS
+#if defined(USE_FORWARD_PLUS) || defined(USE_CLUSTER_LIGHT_LOOP)
     #define IS_URP_14_OR_NEWER 1
     #define IS_URP_12_OR_NEWER 1
 #else

+ 1 - 1
spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/package.json

@@ -2,7 +2,7 @@
   "name": "com.esotericsoftware.spine.urp-shaders",
   "displayName": "Spine Universal RP Shaders",
   "description": "This plugin provides universal render pipeline (URP) shaders for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 4.2.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)",
-  "version": "4.2.43",
+  "version": "4.2.44",
   "unity": "2019.3",
   "author": {
     "name": "Esoteric Software",