Additive blending support.

This commit is contained in:
NathanSweet 2014-04-15 21:11:01 +02:00
parent d3bf1d00bb
commit 6b95c8b5da
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;