diff --git a/source/funkin/graphics/FunkinSprite.hx b/source/funkin/graphics/FunkinSprite.hx index 41eab2657..ed30560fd 100644 --- a/source/funkin/graphics/FunkinSprite.hx +++ b/source/funkin/graphics/FunkinSprite.hx @@ -874,7 +874,15 @@ class FunkinSprite extends FlxAnimate #if !flash if (willUseRenderTexture) { - if (_renderTexture == null) _renderTexture = new RenderTexture(Math.ceil(bounds.width), Math.ceil(bounds.height)); + if (_renderTexture == null) + { + _renderTexture = new RenderTexture(Math.ceil(bounds.width), Math.ceil(bounds.height)); + + // Replace the render texture's camera with a FunkinCamera + // This allows the blend shader to work inside the render texture! + @:privateAccess + _renderTexture._camera = new FunkinCamera('', 0, 0, Math.ceil(bounds.width), Math.ceil(bounds.height)); + } if (_renderTextureDirty) {