From 044bb474792b6137b448d17cad809efd065b6ea4 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 1 Apr 2025 18:53:47 +0200 Subject: [PATCH] [unity] Fixed URP Skeleton Lit shader displaying fade to white transparent slots when affected by GI. Closes #2798. --- .../Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl | 6 +++--- .../com.esotericsoftware.spine.urp-shaders/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl b/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl index 8368d66b0..ad99446fe 100644 --- a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-SkeletonLit-ForwardPass-URP.hlsl +++ b/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 diff --git a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/package.json b/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/package.json index 4724b1a95..4b985624f 100644 --- a/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/package.json +++ b/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",