mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
Removed un-used calls
This commit is contained in:
parent
12bcdbf672
commit
6505e6837a
1 changed files with 4 additions and 7 deletions
|
@ -46,9 +46,11 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
|
|||
var batcher = plugin.batcher;
|
||||
var runtime = src.runtime;
|
||||
var skeleton = src.skeleton;
|
||||
|
||||
var skeletonRenderer = plugin.skeletonRenderer;
|
||||
|
||||
// skeleton.flipX = src.flipX;
|
||||
// skeleton.flipY = src.flipY;
|
||||
|
||||
mvp.ortho(0, renderer.width, 0, renderer.height, 0, 1);
|
||||
|
||||
var data = calcMatrix.decomposeMatrix();
|
||||
|
@ -57,19 +59,14 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
|
|||
mvp.rotateZ(data.rotation * -1);
|
||||
mvp.scaleXYZ(data.scaleX, data.scaleY, 1);
|
||||
|
||||
skeleton.updateWorldTransform();
|
||||
|
||||
// Bind the shader and set the texture and model-view-projection matrix.
|
||||
// skeleton.updateWorldTransform();
|
||||
|
||||
shader.bind();
|
||||
shader.setUniformi(runtime.webgl.Shader.SAMPLER, 0);
|
||||
shader.setUniform4x4f(runtime.webgl.Shader.MVP_MATRIX, mvp.val);
|
||||
|
||||
// Start the batch and tell the SkeletonRenderer to render the active skeleton.
|
||||
batcher.begin(shader);
|
||||
|
||||
// plugin.skeletonRenderer.vertexEffect = null;
|
||||
|
||||
skeletonRenderer.draw(batcher, skeleton);
|
||||
|
||||
batcher.end();
|
||||
|
|
Loading…
Reference in a new issue