Tweaked RT draw fix

This commit is contained in:
Richard Davey 2020-08-25 14:22:48 +01:00
parent de0133e3cc
commit d38cae6682

View file

@ -118,19 +118,12 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
}
}
if (camera.renderToTexture)
if (camera.renderToTexture || renderer.currentFramebuffer !== null)
{
skeleton.y = calcMatrix.ty;
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();