mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[phaser] Clean-up rendering code.
This commit is contained in:
parent
2207b3e620
commit
69cec06c23
@ -67,15 +67,7 @@ export class SpineGameObject extends ComputedSizeMixin(DepthMixin(FlipMixin(Scro
|
||||
|
||||
camera.addToRenderList(src);
|
||||
let transform = Phaser.GameObjects.GetCalcMatrix(src, camera, parentMatrix).calc;
|
||||
/*let x = transform.tx;
|
||||
let y = transform.ty;
|
||||
let scaleX = transform.scaleX;
|
||||
let scaleY = transform.scaleY;
|
||||
let rotation = transform.rotationNormalized;
|
||||
let cosRotation = Math.cos(rotation);
|
||||
let sinRotation = Math.sin(rotation);*/
|
||||
let a = transform.a, b = transform.b, c = transform.c, d = transform.d, tx = transform.tx, ty = transform.ty;
|
||||
|
||||
sceneRenderer.drawSkeleton(this.skeleton, this.premultipliedAlpha, -1, -1, (vertices, numVertices, stride) => {
|
||||
for (let i = 0; i < numVertices; i += stride) {
|
||||
let vx = vertices[i];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user