mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 13:19:08 +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();
|
if (drawing) setupMatrices();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getPremultipliedAlpha () {
|
||||||
|
return premultipliedAlpha;
|
||||||
|
}
|
||||||
|
|
||||||
protected void setupMatrices () {
|
protected void setupMatrices () {
|
||||||
combinedMatrix.set(projectionMatrix).mul(transformMatrix);
|
combinedMatrix.set(projectionMatrix).mul(transformMatrix);
|
||||||
shader.setUniformf("u_pma", premultipliedAlpha ? 1 : 0);
|
shader.setUniformf("u_pma", premultipliedAlpha ? 1 : 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user