From 638fd113b5a967c6f3664731ccd247901691c7b6 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Sat, 16 Oct 2021 15:23:33 +0100 Subject: [PATCH] Flip the Y on textures --- src/renderer/webgl/pipelines/SpriteFXPipeline.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/webgl/pipelines/SpriteFXPipeline.js b/src/renderer/webgl/pipelines/SpriteFXPipeline.js index 2a9086b30..2b842d154 100644 --- a/src/renderer/webgl/pipelines/SpriteFXPipeline.js +++ b/src/renderer/webgl/pipelines/SpriteFXPipeline.js @@ -433,6 +433,10 @@ var SpriteFXPipeline = new Class({ { // Proxy this call to the MultiPipeline // batchQuad will intercept the rendering + + // Needed for Text & TileSprite - how about others? + flipY = true; + MultiPipeline.prototype.batchTexture.call(this, gameObject, texture, textureWidth, textureHeight, srcX, srcY, srcWidth, srcHeight, scaleX, scaleY, rotation, flipX, flipY, scrollFactorX, scrollFactorY, displayOriginX, displayOriginY, frameX, frameY, frameWidth, frameHeight, tintTL, tintTR, tintBL, tintBR, tintEffect, uOffset, vOffset, camera, parentTransformMatrix, skipFlip, textureUnit); },