mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
Additive blending support.
This commit is contained in:
parent
d3bf1d00bb
commit
6b95c8b5da
@ -209,6 +209,7 @@ public class SkeletonComponent : MonoBehaviour {
|
||||
color.r = (byte)(r * slot.R * color.a);
|
||||
color.g = (byte)(g * slot.G * color.a);
|
||||
color.b = (byte)(b * slot.B * color.a);
|
||||
if (slot.Data.AdditiveBlending) color.a = 0;
|
||||
colors[vertexIndex] = color;
|
||||
colors[vertexIndex + 1] = color;
|
||||
colors[vertexIndex + 2] = color;
|
||||
|
||||
@ -209,6 +209,7 @@ public class SkeletonComponent : MonoBehaviour {
|
||||
color.r = (byte)(r * slot.R * color.a);
|
||||
color.g = (byte)(g * slot.G * color.a);
|
||||
color.b = (byte)(b * slot.B * color.a);
|
||||
if (slot.Data.AdditiveBlending) color.a = 0;
|
||||
colors[vertexIndex] = color;
|
||||
colors[vertexIndex + 1] = color;
|
||||
colors[vertexIndex + 2] = color;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user