mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 16:26:40 +08:00
[libgdx] Fixed TWoColorPolygonBatch, wrong number of components specified for dark color vertex attribute. Can't do 3 components in libGDX for packed color, we send a 4 byte float
This commit is contained in:
parent
25fb5b1bff
commit
6d948697cf
@ -69,7 +69,7 @@ public class TwoColorPolygonBatch {
|
||||
mesh = new Mesh(vertexDataType, false, maxVertices, maxTriangles * 3, //
|
||||
new VertexAttribute(Usage.Position, 2, "a_position"), //
|
||||
new VertexAttribute(Usage.ColorPacked, 4, "a_light"), //
|
||||
new VertexAttribute(Usage.ColorPacked, 3, "a_dark"), //
|
||||
new VertexAttribute(Usage.ColorPacked, 4, "a_dark"), //
|
||||
new VertexAttribute(Usage.TextureCoordinates, 2, "a_texCoord0"));
|
||||
|
||||
vertices = new float[maxVertices * 6];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user