mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed Sprite pixel-lit shader incorrectly applying secondary lights. Closes #2147.
This commit is contained in:
parent
6da33e5c88
commit
e784103de9
@ -222,6 +222,13 @@ fixed4 fragAdd(VertexOutput input) : SV_Target
|
||||
|
||||
ALPHA_CLIP(texureColor, input.color)
|
||||
|
||||
// previous fragBase pass was zwrite pass, so overlapping regions require
|
||||
// full alpha applied since they are applied only once.
|
||||
#if defined(_ALPHAPREMULTIPLY_ON)
|
||||
texureColor.rgb /= texureColor.a == 0 ? 1 : texureColor.a;
|
||||
#endif
|
||||
texureColor.a = 1.0;
|
||||
|
||||
//Get normal direction
|
||||
fixed3 normalWorld = calculateNormalWorld(input);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user