mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Spine Game Objects can now be rendered to Render Textures. Fix #5184
This commit is contained in:
parent
2008035ca1
commit
de0133e3cc
2 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,13 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
|
||||||
skeleton.scaleY *= -1;
|
skeleton.scaleY *= -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (renderer.currentFramebuffer !== null)
|
||||||
|
{
|
||||||
|
skeleton.x = 0;
|
||||||
|
skeleton.y = calcMatrix.ty - (viewportHeight * src.scaleY);
|
||||||
|
skeleton.scaleY *= -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Add autoUpdate option
|
// Add autoUpdate option
|
||||||
skeleton.updateWorldTransform();
|
skeleton.updateWorldTransform();
|
||||||
|
|
||||||
|
|
|
@ -1219,6 +1219,10 @@ var WebGLRenderer = new Class({
|
||||||
|
|
||||||
gl.viewport(0, 0, this.width, this.height);
|
gl.viewport(0, 0, this.width, this.height);
|
||||||
|
|
||||||
|
this.currentProgram = null;
|
||||||
|
this.currentVertexBuffer = null;
|
||||||
|
this.currentIndexBuffer = null;
|
||||||
|
|
||||||
this.setBlendMode(0, true);
|
this.setBlendMode(0, true);
|
||||||
|
|
||||||
this.resetTextures();
|
this.resetTextures();
|
||||||
|
|
Loading…
Add table
Reference in a new issue