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),
|
||||
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
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user