Эх сурвалжийг харах

[unity] Fixed URP Skeleton Lit shader displaying fade to white transparent slots when affected by GI. Closes #2798.

Harald Csaszar 3 сар өмнө
parent
commit
044bb47479

+ 3 - 3
spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl

@@ -178,13 +178,13 @@ VertexOutput vert(appdata v) {
 			GetWorldSpaceNormalizeViewDir(positionWS),
 			o.pos.xy,
 			ignoredProbeOcclusion,
-			shadowMask);
+			shadowMask) * v.color.a;
 	#else // _ADAPTIVE_PROBE_VOLUMES_PER_PIXEL
 		half3 bakedGI = half3(0.0, 0.0, 0.0);
 		o.positionCS = o.pos;
 	#endif
 #else
-	half3 bakedGI = SAMPLE_GI(v.lightmapUV, vertexSH, normalWS);
+	half3 bakedGI = SAMPLE_GI(v.lightmapUV, vertexSH, normalWS) * v.color.a;
 #endif
 	color.rgb += bakedGI;
 	o.color = color;
@@ -223,7 +223,7 @@ half4 frag(VertexOutput i
 		GetWorldSpaceNormalizeViewDir(i.positionWS),
 		i.positionCS.xy,
 		ignoredProbeOcclusion,
-		shadowMask);
+		shadowMask) * i.color.a;
 	i.color.rgb += bakedGI;
 #endif
 

+ 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.42",
+  "version": "4.2.43",
   "unity": "2019.3",
   "author": {
     "name": "Esoteric Software",