mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +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;
|
||||
}
|
||||
|
||||
if (renderer.currentFramebuffer !== null)
|
||||
{
|
||||
skeleton.x = 0;
|
||||
skeleton.y = calcMatrix.ty - (viewportHeight * src.scaleY);
|
||||
skeleton.scaleY *= -1;
|
||||
}
|
||||
|
||||
// Add autoUpdate option
|
||||
skeleton.updateWorldTransform();
|
||||
|
||||
|
|
|
@ -1219,6 +1219,10 @@ var WebGLRenderer = new Class({
|
|||
|
||||
gl.viewport(0, 0, this.width, this.height);
|
||||
|
||||
this.currentProgram = null;
|
||||
this.currentVertexBuffer = null;
|
||||
this.currentIndexBuffer = null;
|
||||
|
||||
this.setBlendMode(0, true);
|
||||
|
||||
this.resetTextures();
|
||||
|
|
Loading…
Reference in a new issue