mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[libgdx] Added TwoColorPolygonBatch#getPremultipliedAlpha.
This commit is contained in:
parent
ec93dbac89
commit
aced5aa489
@ -1390,6 +1390,10 @@ public class TwoColorPolygonBatch implements PolygonBatch {
|
||||
if (drawing) setupMatrices();
|
||||
}
|
||||
|
||||
public boolean getPremultipliedAlpha () {
|
||||
return premultipliedAlpha;
|
||||
}
|
||||
|
||||
protected void setupMatrices () {
|
||||
combinedMatrix.set(projectionMatrix).mul(transformMatrix);
|
||||
shader.setUniformf("u_pma", premultipliedAlpha ? 1 : 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user