Fixed premultiplied alpha.

This commit is contained in:
NathanSweet 2013-08-04 18:38:02 +02:00
parent 99bafd2971
commit c202fc5d85
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class SkeletonRendererDebug {
Attachment attachment = slot.attachment;
if (attachment instanceof RegionAttachment) {
RegionAttachment regionAttachment = (RegionAttachment)attachment;
regionAttachment.updateVertices(slot);
regionAttachment.updateVertices(slot, false);
float[] vertices = regionAttachment.getVertices();
renderer.line(vertices[X1], vertices[Y1], vertices[X2], vertices[Y2]);
renderer.line(vertices[X2], vertices[Y2], vertices[X3], vertices[Y3]);

View File

@ -40,7 +40,7 @@ public class RegionSequenceAttachment extends RegionAttachment {
super(name);
}
public void updateVertices (Slot slot) {
public void updateVertices (Slot slot, boolean premultipliedAlpha) {
if (regions == null) throw new IllegalStateException("Regions have not been set: " + this);
int frameIndex = (int)(slot.getAttachmentTime() / frameTime);
@ -68,7 +68,7 @@ public class RegionSequenceAttachment extends RegionAttachment {
}
setRegion(regions[frameIndex]);
super.updateVertices(slot);
super.updateVertices(slot, premultipliedAlpha);
}
public TextureRegion[] getRegions () {