mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[unity] Fixed URP Skeleton Lit shader displaying fade to white transparent slots when affected by GI. Closes #2798.
This commit is contained in:
parent
8a25057510
commit
044bb47479
@ -178,13 +178,13 @@ VertexOutput vert(appdata v) {
|
|||||||
GetWorldSpaceNormalizeViewDir(positionWS),
|
GetWorldSpaceNormalizeViewDir(positionWS),
|
||||||
o.pos.xy,
|
o.pos.xy,
|
||||||
ignoredProbeOcclusion,
|
ignoredProbeOcclusion,
|
||||||
shadowMask);
|
shadowMask) * v.color.a;
|
||||||
#else // _ADAPTIVE_PROBE_VOLUMES_PER_PIXEL
|
#else // _ADAPTIVE_PROBE_VOLUMES_PER_PIXEL
|
||||||
half3 bakedGI = half3(0.0, 0.0, 0.0);
|
half3 bakedGI = half3(0.0, 0.0, 0.0);
|
||||||
o.positionCS = o.pos;
|
o.positionCS = o.pos;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
half3 bakedGI = SAMPLE_GI(v.lightmapUV, vertexSH, normalWS);
|
half3 bakedGI = SAMPLE_GI(v.lightmapUV, vertexSH, normalWS) * v.color.a;
|
||||||
#endif
|
#endif
|
||||||
color.rgb += bakedGI;
|
color.rgb += bakedGI;
|
||||||
o.color = color;
|
o.color = color;
|
||||||
@ -223,7 +223,7 @@ half4 frag(VertexOutput i
|
|||||||
GetWorldSpaceNormalizeViewDir(i.positionWS),
|
GetWorldSpaceNormalizeViewDir(i.positionWS),
|
||||||
i.positionCS.xy,
|
i.positionCS.xy,
|
||||||
ignoredProbeOcclusion,
|
ignoredProbeOcclusion,
|
||||||
shadowMask);
|
shadowMask) * i.color.a;
|
||||||
i.color.rgb += bakedGI;
|
i.color.rgb += bakedGI;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.urp-shaders",
|
"name": "com.esotericsoftware.spine.urp-shaders",
|
||||||
"displayName": "Spine Universal RP 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)",
|
"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",
|
"unity": "2019.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user